Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-09-2003, 12:57 PM   #1
LQ Newbie
Registered: Sep 2003
Location: Berlin
Posts: 5

Rep: Reputation: 0
SCHED_FIFO not working with g++ but gcc ?!


for various reasons i once had to compile my code with gcc instead of g++ and it dramatically changed the scheduling behaviour, so im guessing sched_fifo didnt work at all with g++.

my code is basically:

sched_param prio;
prio.sched_priority = sched_get_priority_max( SCHED_FIFO );
sched_setscheduler( 0, SCHED_FIFO, &prio );

(im checking if setscheduler() returns 0 )
running it compiled with g++ results in a really friendly programm which occasionally uses 10% cpu....

compiled with gcc the program runs really realtime ... consoles react a lot slower and so on ... but didnt hang system

so what is the problem with g++ ? setscheduler returned 0 but doesnt work ?!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
the linker is not working (gcc ) abd_bela Ubuntu 1 09-13-2005 03:51 PM
gcc not working bluknight43 Programming 4 02-14-2005 01:15 PM
problem using sched_fifo svsvenu Programming 3 07-29-2003 08:09 AM
problem using sched_fifo svsvenu Linux - Newbie 0 07-29-2003 07:37 AM
running pthreads under SCHED_FIFO policy saintt Programming 0 11-16-2001 05:41 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration