LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-24-2005, 01:41 PM   #1
bndpatel
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
scheduling thread gives error


Hi

I am writing multi-threaded application on linux. I need to set the thead scheduling policy to SCHED_FIFO, when i try to set up policy as part of thread creation (passing attr in pthread_create call), i get error. It complains that my process does not hav superuser privileges.

How do i set super user priveleges for the process before i set up scheduling policy for threads

thanks
 
Old 06-24-2005, 01:54 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Run it as root.
 
  


Reply


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
Another GRUB error 17 thread Navyblue Linux - Newbie 3 10-10-2005 08:04 PM
Need FIFO thread scheduling policy enigma82 Programming 0 04-20-2005 07:35 AM
MySql Thread error on startup Biggen Linux - Software 9 09-30-2004 08:05 AM
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 09:15 AM
gnome 2.6 gtk thread locks error???? DaVenom Slackware 3 05-31-2004 06:42 AM


All times are GMT -5. The time now is 07:06 AM.

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