[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Issue with process.st and preemptive mode
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] Issue with process.st and preemptive mode |
Date: |
Tue, 11 May 2010 12:41:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.4 |
On 05/10/2010 11:40 AM, Holger Hans Peter Freyther wrote:
Is that the expected behaviour? Should there be some code to check if a
process has recently exited and then not yield the Process but cycle
it once more?
Yes, it looks like that. Check highest_priority_process:
/* If there's only one element in the list, discard this
priority. */
processList = (gst_semaphore) OOP_TO_OBJ (processListOOP);
if (processList->firstLink == processList->lastLink)
continue;
maybe you want to test is_process_terminated too somewhere?
Paolo