Accounting on the number of threads.
extern int athreadsTotal, | |
athreadsBlockedComm, | |
athreadsBlockedLock,
| |
These three variables, readable by the user but updated only by Athapascan, reflect the current state of a node, regarding the number of (user) threads running (or waiting) on that node.
BUG: the update of these variables in Athapascan is not protected, so their values might be erroneous, due to race conditions.