[ prev |
next |
up ]
What is inqueue for?
[from your friendly TA]
> I am currently not using the "inqueue" element of the TD struct.
> In addition, I do not see a real use for using it! Is this correct or am
> I missing something important.
One of the uses of the inqueue is to keep the status of a thread
descriptor (not used, blocked or active). You can certainly get away
without using inqueue, but you should make sure that you can still figure
out what the status of a thread is. Remember that in Idle(),
you have to print the status of all threads that are valid. Thus, if
you choose to remove the inqueue field, make sure that you make the
appropriate changes to the Idle() function given in the assignment so that
it still displays the same output.