linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* soft real-time scheduling
@ 2004-09-26 14:08 Ankit Jain
  2004-09-26 15:06 ` Muthukumar Ratty
  2004-09-26 15:13 ` Eljay Love-Jensen
  0 siblings, 2 replies; 3+ messages in thread
From: Ankit Jain @ 2004-09-26 14:08 UTC (permalink / raw)
  To: linux prg; +Cc: gcc

hi

 /* soft realtime scheduling variable */
   struct sched_param *p;


 /* set soft real-time scheduling */
   sched_getparam(0,p);
   p->sched_priority = 50;
   if (sched_setscheduler(0,SCHED_FIFO,p))
     fprintf(stderr,"Could not change scheduler
settings\n");

if anyone knows about this then i need some help

p is a pointer to the structure sched_param which is
defined in sched.h

this structure has a variable __sched_priority where i
have to set the priority of the process

p->sched_priority =50 this line gives a segmentation
fault. 
how t oaccess this variable (__sched_priority) of the
header file

thanks

ankit

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-26 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-26 14:08 soft real-time scheduling Ankit Jain
2004-09-26 15:06 ` Muthukumar Ratty
2004-09-26 15:13 ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).