Pumpkin, Inc.

Pumpkin User Forums

Equal priority and execution order

If you can't make Salvo do what you want it to do, post it here.

Equal priority and execution order

Postby dfleck » Fri May 31, 2002 8:16 am

I read in the user manual (p.234) that tasks of equal priority execute in the order they were started. Does this mean the order of creation does not matter? For example:

OSCreateTask(A,AP,OSDONT_START_TASK|1);
OSCreateTask(B,BP,OSDONT_START_TASK|1);
OSCreateTask(C,CP,OSDONT_START_TASK|1);
OSStartTask(BP);
OSStartTask(AP);
OSStartTask(CP);

In what order will the tasks run?

------------------
Donald A. Fleck

Donald A. Fleck
dfleck
 
Posts: 28
Joined: Sun May 12, 2002 11:00 pm
Location: Breinigsville, PA, USA

Re: Equal priority and execution order

Postby aek » Sat Jun 01, 2002 7:16 am

Hi Donald.

You are correct -- the order of creation does not matter if they were created to not start automatically. In your example, BP will run first, then AP, then CP.

If you created them without OSDONT_START_TASK, then they would run in AP, BP, CP order.

------------------

[This message has been edited by aek (edited June 01, 2002).]

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Coding

Who is online

Users browsing this forum: No registered users and 1 guest

cron