Explain Thread Synchronization and priorities in ANEKA.
Thread Synchronization
- The.Net framework includes many synchronization primitives for regulating local thread interactions and preventing race conditions, such as locking and signaling. The Aneka threading library only offers a single synchronization technique through the Aneka Thread. Join method.
- Invoking Aneka Thread's join method causes the main application thread to block until the Aneka Thread quits, either successfully or unsuccessfully. This fundamental level of synchronization might be advantageous in applications where partial results of calculations are required to proceed further. Because one of these threads executes independently of the others and uses its own private data structures, no further types of synchronization such as locking or signaling are required.
- As the Aneka runtime environment is shared by several users, and different programs use the execution nodes, it is not possible to conduct actions such as Suspend, Resume, Interrupt, and Sleep, which might result in retaining a resource forever and preventing it from being utilized.
Thread Priorities
The Thread class in Net supports thread priorities. The scheduling priority can be one Highest AboveNormal, Normal, BelowNormal, and Lowest. Operating systems, on the other hand, are not compelled to respect a thread's priority. Aneka's present version does not support thread priority.
Comments
Post a Comment