* [Q] priocntl on DEC OSF1 V3.2 alpha
@ 1996-08-26 4:00 David Page
0 siblings, 0 replies; only message in thread
From: David Page @ 1996-08-26 4:00 UTC (permalink / raw)
My system:
DEC alpha OSF1 release V3.2 version 17
I'm trying to use the POSIX priocntl to move my process into
a real-time class and then to set the real-time priority of
the process.
Here's a block of my code:
----- code ------
strcpy(pcinfo.pc_clname, "RT");
rv = priocntl(P_PID, P_MYID, PC_GETCID, (char *) &pcinfo);
pc_clparms.rt_pri = 59;
pc_clparms.rt_tqsecs = 0;
pc_clparms.rt_tqnsecs = RT_TQDEF;
pcparms.pc_cid = pcinfo.pc_cid;
memcpy(pcparms.pc_clparms, &pc_clparms, sizeof(pc_clparms));
rv = priocntl(P_PID, P_MYID, PC_SETPARMS, (char *) &pcparms);
----- code ------
I'm running the process as root; however, the error I'm getting makes me
believe one of two things:
a) The name of the real-time class is not "RT".
OR
b) The real-time class is not implemented.
Any help with this would be greatly appreciated.
Thanks,
--Dave
______ _____
David Lon Page dlpage@nswc.navy.mil
Naval Surface Warfare Center tel: 540.653.1058
Dahlgren, Virginia, USA fax: 540.653.1596
___________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-08-26 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-26 4:00 [Q] priocntl on DEC OSF1 V3.2 alpha David Page
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox