Volatile and Loop Invariant Code Motion
A demonstration of visibility problem in multi-threaded programs and how volatile solves it.
A demonstration of visibility problem in multi-threaded programs and how volatile solves it.
Demo of lock coarsening.
This post shows how to instrument Windows resources using WMI and Java. The attached source code has 3 programs:
PrintInstances.java prints all instances of a given class. For e.g., to retrieve a list of services use Win32_Service in WML.
SimpleServiceManager.java starts or stops a given service.ServiceManager.java starts or stops a service by starting/stopping any dependents.Create N processes in a ring. Send a message round the ring M times so that a total of N * M messages get sent. Time how long this takes for different values of N and M.
A demonstration of problem when volatile is not used.