CS318 - Pintos
Pintos source browser for JHU CS318 course
Data Fields
simple_thread_data Struct Reference

Creates several threads all at the same priority and ensures that they consistently run in the same round-robin order. More...

Collaboration diagram for simple_thread_data:
Collaboration graph
[legend]

Data Fields

int id
 Sleeper ID. More...
 
int iterations
 Iterations so far. More...
 
struct locklock
 Lock on output. More...
 
int ** op
 Output buffer position. More...
 

Detailed Description

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 start.nosp@m.led@.nosp@m.lelan.nosp@m.d.st.nosp@m.anfor.nosp@m.d.ed.nosp@m.u, Greg Hutchins gmh@l.nosp@m.elan.nosp@m.d.sta.nosp@m.nfor.nosp@m.d.edu, Yu Ping Hu yph@c.nosp@m.s.st.nosp@m.anfor.nosp@m.d.ed.nosp@m.u. Modified by arens.

Definition at line 18 of file priority-fifo.c.

Field Documentation

◆ id

int simple_thread_data::id

Sleeper ID.

Definition at line 20 of file priority-fifo.c.

Referenced by simple_thread_func(), and test_priority_fifo().

◆ iterations

int simple_thread_data::iterations

Iterations so far.

Definition at line 21 of file priority-fifo.c.

Referenced by test_priority_fifo().

◆ lock

struct lock* simple_thread_data::lock

Lock on output.

Definition at line 22 of file priority-fifo.c.

Referenced by simple_thread_func(), and test_priority_fifo().

◆ op

int** simple_thread_data::op

Output buffer position.

Definition at line 23 of file priority-fifo.c.

Referenced by simple_thread_func(), and test_priority_fifo().


The documentation for this struct was generated from the following file: