Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for 
change notification.

The following page has been changed by ArchieCobbs:
http://wiki.apache.org/harmony/JVM_Implementation_Ideas

------------------------------------------------------------------------------
   * Disadvantages: none known
   * Origin: SableVM
  
- == Signals for thread notification ===
+ === Signals for thread notification ===
  
-  * Idea: threads must periodically check whether they need to do something. 
Typically this is done at backward branches. To make this check efficient, have 
the thread read a byte from a well-known page of mmap()'d memory. When another 
thread wants the thread to check-in, it simply maps that page unreadable. The 
target thread gets a signal,
+  * Idea: threads must periodically check whether they need to do something. 
Typically this is done at backward branches. To make this check efficient, have 
the thread read a byte from a well-known page of mmap()'d memory. When another 
thread wants the thread to check-in, it simply maps that page unreadable. The 
target thread gets a signal, it does whatever check required, the page is 
re-mapped readable, and the target thread returns from the signal and continues 
on its merry way.
- does whatever check required, the page is re-mapped readable, and the target 
thread returns from the signal and continues on its merry way.
   * Advantages: efficient way to enforce checking in
   * Disadvantages: requires mmap() and signals
   * Origin: unknown/multiple; implemented in lots of places.

Reply via email to