I second Iulian's opinion. ps.exe should show up in the list of processes
and it is fine to just label is as 'R' along with the other runnable
threads. ie you dont need to make a distinction between runnable and
running processes (partly because this is what we are used to in unix
anyway).
| Eran Kravitz wrote:
| > Quick question, should ps itself be included in the table when running
| > the ps command? If so, is it considered runnable?.
| >
| > Thank you.
|
| Well, yes, it is actually running because it's the one calling Sys_PS
| when you take the snapshot.
| You have a good point: ps is *running*, and some other processes in the
| runqueue are *runnable*, i.e. not blocked and waiting their turn for a
| quantum. I presume showing 'R' is OK, although to me there should be a
| distinction between runnable and running. Ask the TAs or Dr. Hicks, but
| in the meantime print 'R'; you can easily change it later.