… | |
… | |
70 | } else { |
70 | } else { |
71 | $_[0][0] = 1; |
71 | $_[0][0] = 1; |
72 | } |
72 | } |
73 | } |
73 | } |
74 | |
74 | |
75 | It puts the waiting process into thr ready queue again. |
75 | It puts the waiting process into the ready queue again. |
76 | |
76 | |
77 | "cede" is implemented like this (in C, but the basic idea is the same): |
77 | "cede" is implemented like this (in C, but the basic idea is the same): |
78 | |
78 | |
79 | sub cede { |
79 | sub cede { |
80 | $current->ready; |
80 | $current->ready; |
… | |
… | |
85 | |
85 | |
86 | -- |
86 | -- |
87 | -----==- | |
87 | -----==- | |
88 | ----==-- _ | |
88 | ----==-- _ | |
89 | ---==---(_)__ __ ____ __ Marc Lehmann +-- |
89 | ---==---(_)__ __ ____ __ Marc Lehmann +-- |
90 | --==---/ / _ \/ // /\ \/ / pcg@goof.com |e| |
90 | --==---/ / _ \/ // /\ \/ / schmorp@schmorp.de |e| |
91 | -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ |
91 | -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ |
92 | The choice of a GNU generation | |
92 | The choice of a GNU generation | |
93 | | |
93 | | |
94 | |
94 | |