View topic - Priority selection for application
Priority selection for application
8 posts
• Page 1 of 1
Priority selection for application
Hi all,
By default, the priority of a thread is 10. I need some of my threads to run at high priority. So i set their priorities at 20. But it caused some issues like the system time not getting updated etc.
From my understanding OS related threads are running at priorities 10 , 11 and 12 and driver threads at 21, 22 etc.
Could anyone please tell which priority range i should give for my application threads. Scheduling used in round robin.
Regards,
hello
By default, the priority of a thread is 10. I need some of my threads to run at high priority. So i set their priorities at 20. But it caused some issues like the system time not getting updated etc.
From my understanding OS related threads are running at priorities 10 , 11 and 12 and driver threads at 21, 22 etc.
Could anyone please tell which priority range i should give for my application threads. Scheduling used in round robin.
Regards,
hello
- hello
- Senior Member
- Posts: 101
- Joined: Tue May 08, 2012 1:09 pm
Re: Priority selection for application
Just setting a thread to be 1 higher (11) than the default of 10 should be all you need. If that's not enough, try 12.
It's very rare that you would need priorities for an application (non-driver) beyond those numbers. In fact I hardly ever use anything but the default priority of 10.
Tim
It's very rare that you would need priorities for an application (non-driver) beyond those numbers. In fact I hardly ever use anything but the default priority of 10.
Tim
- Tim
- Senior Member
- Posts: 1471
- Joined: Wed Mar 10, 2004 12:28 am
Re: Priority selection for application
And multi-core makes priority less relevant. We aren't that far away from machines with as many core as there are priorities 

- mario
- QNX Master
- Posts: 4132
- Joined: Sun Sep 01, 2002 1:04 am
Re: Priority selection for application
mario wrote:And multi-core makes priority less relevant. We aren't that far away from machines with as many core as there are priorities
How about as many processors as running threads,

- maschoen
- QNX Master
- Posts: 2715
- Joined: Wed Jun 25, 2003 5:18 pm
Re: Priority selection for application
We are already there now aren't we?
AMD offers 16 core processors (Opteron 6200 series) and there are MB's that hold 4 of them giving 64 cores. The cost is around $4300 making them cost effective for servers / high end work stations.
http://www.thinkmate.com/Computer_Syste ... ore_Server
Tim
AMD offers 16 core processors (Opteron 6200 series) and there are MB's that hold 4 of them giving 64 cores. The cost is around $4300 making them cost effective for servers / high end work stations.
http://www.thinkmate.com/Computer_Syste ... ore_Server
Tim
- Tim
- Senior Member
- Posts: 1471
- Joined: Wed Mar 10, 2004 12:28 am
Re: Priority selection for application
Tim wrote:We are already there now aren't we?
AMD offers 16 core processors (Opteron 6200 series) and there are MB's that hold 4 of them giving 64 cores. The cost is around $4300 making them cost effective for servers / high end work stations.
http://www.thinkmate.com/Computer_Syste ... ore_Server
Tim
Yes, but on a server you probably have 64+ threads running. I'm really nit picking here.
That's a tremendous amount of cpu power, and more than likely a system like that is completely
I/O bound at the disk(s).
I could be wrong, but I think the current distributions of QNX only have a cpu mask with 32 bits, so
I guess QNX is maxed out. It's probably something along the lines of getting a 64 bit version going before more are supported.
Of course with the current focus on embedded systems, that will probably be quite a while.
- maschoen
- QNX Master
- Posts: 2715
- Joined: Wed Jun 25, 2003 5:18 pm
Re: Priority selection for application
maschoen wrote:Of course with the current focus on embedded systems, that will probably be quite a while.
I hope not!
- mario
- QNX Master
- Posts: 4132
- Joined: Sun Sep 01, 2002 1:04 am
Re: Priority selection for application
mario wrote:maschoen wrote:Of course with the current focus on embedded systems, that will probably be quite a while.
I hope not!
I had a talk today with someone from QNX. The told me that it was half done (64 bit QNX), but not in progress.
- maschoen
- QNX Master
- Posts: 2715
- Joined: Wed Jun 25, 2003 5:18 pm
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests