Discussion:
grading criterion for proj1 posted.
(too old to reply)
Saurabh Srivastava
2005-09-17 07:04:14 UTC
Permalink
the grading criterion for project 1 has been linked off from the proj1
page. It also includes some basic testing that you should do sooner than
later.
James Reilly Andreassi
2005-09-17 07:36:28 UTC
Permalink
Post by Saurabh Srivastava
the grading criterion for project 1 has been linked off from the proj1
page. It also includes some basic testing that you should do sooner than
later.
Hi, the criterion includes:
Correct handling of requests to kill invalid PIDs:
zombie processes - 5 points.
non existant PIDs - 5 points.

What is the correct handling for each of these cases?
I'm guessing that for non-existant PIDs, it should be the same behaviour
as attempting to wait on a non-existant PID, but I'm not sure what
special behaviour should be done for zombies.
Saurabh Srivastava
2005-09-17 11:48:44 UTC
Permalink
| What is the correct handling for each of these cases?
| I'm guessing that for non-existant PIDs, it should be the same behaviour
| as attempting to wait on a non-existant PID, but I'm not sure what
| special behaviour should be done for zombies.

Kill should fail in either case. A zombie is already a dead thread; just
waiting for its resources to be deallocated. A kill for it should be
ignored.
c***@CSIC.UMD.EDU
2005-09-17 14:21:22 UTC
Permalink
How are we defining that a thread is dead, when alive = false?

A thread will either be a zombie or in graveyard if it is detected
by the Lookup_Thread function but has alive = false,

Please let me know if this is correct ?

Loading...