c - Change in evaluated expression when one term changes (multi-threaded) -


in c language, there way dynamically see change in value of variable based on change in variable related (multi-threaded)?

for example, if have , b 2 globals, , want = 2*b always.

a = 2*b;

if b changes, in thread, there anyway see change in if switch thread uses a?

to have a changed when b changes works in dataflow driven languages vhdl, designing hardware. in c variables read when needed , not when modified.

when using threads, can notify other threads variable changed, condition variables.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -