Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lock(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 lock(S)                        6 January 1993                        lock(S)


 Name

    lock - locks a process in primary memory

 Syntax


    cc  . . .  -lx


    int lock (flag);
    int flag;


 Description

    If the flag argument is nonzero, the process executing this call is not
    swapped except if it is required to grow.  If the argument is zero, the
    process is unlocked.  This call may only be executed by the super user.

 Notes

    Locked processes interfere with the compaction of primary memory and can
    cause deadlock.  Systems with small memory configurations should avoid
    using this call.  It is best to lock a process soon after booting to
    ensure that it is locked into memory.

    This feature is a XENIX specific enhancement and may not be present in
    all UNIX implementations.

 Standards conformance

    lock is conformant with:
    X/Open Portability Guide, Issue 3, 1989.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026