|
PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
Creates several threads all at the same priority and ensures that they consistently run in the same round-robin order. More...

Data Fields | |
| int | id |
| Sleeper ID. More... | |
| int | iterations |
| Iterations so far. More... | |
| struct lock * | lock |
| Lock on output. More... | |
| int ** | op |
| Output buffer position. More... | |
Creates several threads all at the same priority and ensures that they consistently run in the same round-robin order.
Based on a test originally submitted for Stanford's CS 140 in winter 1999 by by Matt Franklin startled@leland.stanford.edu, Greg Hutchins gmh@leland.stanford.edu, Yu Ping Hu yph@cs.stanford.edu. Modified by arens.
Definition at line 18 of file priority-fifo.c.
| int simple_thread_data::id |
| int simple_thread_data::iterations |
Iterations so far.
Definition at line 21 of file priority-fifo.c.
| struct lock* simple_thread_data::lock |
| int** simple_thread_data::op |
Output buffer position.
Definition at line 23 of file priority-fifo.c.
Referenced by simple_thread_func().