Jump to content

SC_METHOD/SC_THREAD Synchronization

Recommended Posts

Q1. How we will get to know which SC_METHOD/SC_THREAD will trigger first if all the methods are sensitized to 'clock.pos()' 

Q2. how to achieve if we cant to give priority for any specific method ?

Q3. what are the pros and cons of SC_METHOD over SC_THREAD or vice versa ?

Link to post
Share on other sites
  1. There is no guarantee which method or thread is activated first
  2. There is no means to give priority. Why would you like to do this? In my experience you have a thought problem if you believe you need to do this.
  3. thread activation is more expensive (in terms of computing power) than method as the thread context needs to be restored and saved. But threads keep an internal state so they are good to describe state machines.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...