Check out the new USENIX Web site. next up previous
Next: Generation of Prefetch Thread Up: System Architecture Previous: Synchronization

Data Sharing

Although the prefetch thread and the computation thread can share data through global variables in the application program, sometimes we may need to share information in other ways. AASFP provides the abstraction of a communication channel between the two threads. This communication channel is provided by the prefetch library and is implemented using a shared buffer between the two threads. Typically the only variables that need to be shared are the common file pointers and the user/file input variables. The following functions support sharing data between the two threads:


next up previous
Next: Generation of Prefetch Thread Up: System Architecture Previous: Synchronization
chuan-kai yang 2002-04-15