*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> serialize (2)              
Title
Content
Arch
Section
 

Contents


 serialize(2)                                                   serialize(2)




 NAME    [Toc]    [Back]
      serialize() - force target process to run serially with other
      processes

 SYNOPSIS    [Toc]    [Back]
      #include <unistd.h>

      int serialize(int timeshare, pid_t pid);

 DESCRIPTION    [Toc]    [Back]
      The serialize() system call is used to force the target process
      referenced by the pid value passed in to run serially with other
      processes also marked for serialization.  If the value of pid is zero,
      then the currently running process is marked for serialization.  Once
      a process has been marked by serialize(), the process stays marked
      until process completion, unless serialize() is reissued on the
      serialized process with timeshare set to 1.  If timeshare is set to 1,
      the process specified in pid will be returned to normal timeshare
      scheduling algorithms.

      This call is used to improve process throughput since process
      throughput usually increases for large processes when they are
      executed serially instead of allowing each program to run for only a
      short period of time.  By running large processes one at a time, the
      system makes more efficient use of the CPU as well as system memory,
      since each process does not end up constantly faulting in its working
      set, to only have the pages stolen when another process starts
      running.  As long as there is enough memory in the system, processes
      marked by serialize() behave no differently from other processes in
      the system.  However, once memory becomes tight, processes marked by
      serialize() are run one at a time with the highest priority processes
      being run first.  Each process runs for a finite interval of time
      before another serialized process is allowed to run.

 RETURN VALUE    [Toc]    [Back]
      serialize() returns zero upon successful completion, or nonzero if the
      system call failed.

 ERRORS    [Toc]    [Back]
      If serialize() fails, it sets errno (see errno(2)) to the following
      value:

           [ESRCH]        The pid passed in does not exist.

 WARNINGS    [Toc]    [Back]
      The user has no way of forcing an execution order on serialized
      processes.

 AUTHOR    [Toc]    [Back]
      serialize() was developed by HP.




 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 serialize(2)                                                   serialize(2)




 SEE ALSO    [Toc]    [Back]
      serialize(1).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
sigsend IRIX send a signal to a process or a group of processes
kill Tru64 Send a signal to a process or to a group of processes
sigsendset HP-UX send a signal to a process or a group of processes
priocntlset Tru64 change scheduling property of a process or set of processes
kill HP-UX send a signal to a process or a group of processes
pxfkill IRIX Sends a signal to a process or group of processes
sigsend HP-UX send a signal to a process or a group of processes
kill IRIX send a signal to a process or a group of processes
raise HP-UX send a signal to a process or a group of processes
ecfind IRIX report processes using process-based event counters
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service