Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

Competing with the Null Job for CPU?

» close window

The Question is:

 
Do you have any technical documents that supports the argument that a process
 can use up to 100% of the CPU if it is available and not in conflict with
 other scheduled processes?
 


The Answer is :

 
  The null job (the idle loop) effectively does this on all OpenVMS
  systems.  Many OpenVMS systems running the SETI software package
  are also configured to operate this way.
 
  The following DCL works quite nicely as an empirical test:
 
$ COPY SYS$INPUT: SYS$SYSDEVICE:[000000]X.MAR
  .psect  code,nowrt,exe
  .call_entry     preserve=<>,-
                  max_args=0,-
                  home_args=false,-
                  input=<>,-
                  output=<>,-
                  scratch=<>,-
                  label=<main>
  brb main
  .end main
$ MACRO SYS$SYSDEVICE:[000000]X.MAR/OBJECT=SYS$SYSDEVICE:[000000]X.OBJ
$ LINK SYS$SYSDEVICE:[000000]X.OBJ/EXEC=SYS$SYSDEVICE:[000000]X.EXE
$ RUN/DETACH/PRIORITY=0/PROCESS_NAME="Null Wannabe" SYS$SYSDEVICE:[000000]X
 

answer written or last revised on ( 22-MAY-2000 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.