- An example of process (and thread) that blocks himself

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1179 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
paolo 2006-09-15 22:11:57 +00:00
parent 93feee1ee5
commit 715e51dc9d
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!DOCTYPE sgpem SYSTEM "sgpem.dtd">
<sgpem>
<resources>
<resource name="Pen" id="reskey0" arrival-time="0" how-many="1" pre-emptible="false"/>
</resources>
<schedulables>
<process name="Paolo" priority="0" arrival-time="0">
<threads>
<thread name="Right hand" priority="0" arrival-delta="0" lasts-for="10">
<requests>
<request arrival-time="0">
<subrequest resource="0" lasts-for="5"/>
</request>
<request arrival-time="2">
<subrequest resource="0" lasts-for="2"/>
</request>
</requests>
</thread>
<thread name="Left hand" priority="0" arrival-delta="0" lasts-for="10">
<requests>
<request arrival-time="4">
<subrequest resource="0" lasts-for="2"/>
</request>
</requests>
</thread>
</threads>
</process>
</schedulables>
</sgpem>