Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: dlpage@relay.nswc.navy.mil (David Page)
Subject: [Q] priocntl on DEC OSF1 V3.2 alpha
Date: 1996/08/26	[thread overview]
Message-ID: <1996Aug26.160457.14474@relay.nswc.navy.mil> (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
___________________________________________________________________



                 reply	other threads:[~1996-08-26  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox