Jump to content

Context switching in the SystemC scheduler


karandeep963

Recommended Posts

SC_THREADs allow the user to call wait() to suspend the process. When the process executes the wait() function, it has to store its state somewhere (the state consists of the value of local thread variables and the programme counter indicating where the computer should resume executing after the call to wait()).

 

The process of storing the state so that another process can run is called a context switch, which does indeed take time.

 

So SC_THREADs are slower than SC_METHODs - but then SC_METHODs can't suspend,

 

regards

Alan

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...