🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #825

POSIX threads & Linux, priorities doesn't seem to work.

#825
From: Vincent
Date: Tue, 29 May 2001 16:51
18 lines
1787 bytes
Hello!

I wrote a POSIX application using Linux(2.4) & QNX.

There are 2 threads with the following params :
*T1 with SCHED_FIFO & priority == N
*T2 with SCHED_FIFO & priority == N+1

with QNX everything runs perfect, but with Linux, it seems that priorities
are not taken into account (T2 is preemted by T1).

PS : With Linux I run the app with root privileges as required.

Any idea?

Thank you

Vincent
Technical Details
Message-ID: <9f0juc$mke$1@front2m.grolier.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!demon!grolier!club-internet!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,c8583ade1f63f031,start
X-Google-Attributes: gid10c696,public
X-Google-Thread: fb1fd,c8583ade1f63f031,start
X-Google-Attributes: gidfb1fd,public
X-Google-Thread: faa64,c8583ade1f63f031,start
X-Google-Attributes: gidfaa64,public
X-Google-Thread: 100a19,c8583ade1f63f031,start
X-Google-Attributes: gid100a19,public
X-Google-Thread: 100c5f,c8583ade1f63f031,start
X-Google-Attributes: gid100c5f,public
X-Google-ArrivalTime: 2001-05-29 09:50:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!demon!grolier!club-internet!not-for-mail
From: "Vincent" <vincent.catros_NO_SPAM_@bigfoot.com>
Newsgroups: alt.linux,alt.os.linux,be.comp.os.linux,comp.os.linux.development.apps,comp.os.linux.portable
Subject: POSIX threads & Linux, priorities doesn't seem to work.
Date: Tue, 29 May 2001 18:51:03 +0200
Organization: Club-Internet (France)
Lines: 24
Message-ID: <9f0juc$mke$1@front2m.grolier.fr>
NNTP-Posting-Host: nas3-13.krt.club-internet.fr
X-Trace: front2m.grolier.fr 991154956 23182 213.44.105.13 (29 May 2001 16:49:16 GMT)
NNTP-Posting-Date: 29 May 2001 16:49:16 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300