Process Control

┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _beginthread │ "stdlib.h"" │ _beginthread │ Creates a │
│ │ process.h" │ │ new │
│ │ │ │ thread. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _cwait │ "process.h" │ _cwait │ Delays │
│ │ │ │ the com- │
│ │ │ │ pletion │
│ │ │ │ of a │
│ │ │ │ parent │
│ │ │ │ process │
│ │ │ │ until a │
│ │ │ │ child │
│ │ │ │ process │
│ │ │ │ ends. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _endthread │ "stdlib.h"" │ _endthread │ Termi- │
│ │ process.h" │ │ nates a │
│ │ │ │ thread. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ execl - _execvpe │ "process.h" │ execl - _execvpe │ Load and │
│ │ │ │ run child │
│ │ │ │ proc- │
│ │ │ │ esses. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _exit │ "stdlib.h"" │ _exit │ Ends the │
│ │ process.h" │ │ calling │
│ │ │ │ process │
│ │ │ │ without │
│ │ │ │ calling │
│ │ │ │ other │
│ │ │ │ func- │
│ │ │ │ tions. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ getpid │ "process.h" │ getpid │ Gets the │
│ │ │ │ process │
│ │ │ │ identi- │
│ │ │ │ fier that │
│ │ │ │ identi- │
│ │ │ │ fies the │
│ │ │ │ calling │
│ │ │ │ process. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _onexit │ "stdlib.h" │ _onexit │ Records │
│ │ │ │ the │
│ │ │ │ address │
│ │ │ │ of a │
│ │ │ │ function │
│ │ │ │ to call │
│ │ │ │ when the │
│ │ │ │ program │
│ │ │ │ ends. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ putenv │ "stdlib.h" │ putenv │ Adds new │
│ │ │ │ environ- │
│ │ │ │ ment var- │
│ │ │ │ iables or │
│ │ │ │ modifies │
│ │ │ │ the │
│ │ │ │ values of │
│ │ │ │ those │
│ │ │ │ already │
│ │ │ │ existing. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _searchenv │ "stdlib.h" │ _searchenv │ Searches │
│ │ │ │ a speci- │
│ │ │ │ fied │
│ │ │ │ environ- │
│ │ │ │ ment for │
│ │ │ │ a target │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _spawnl - _spawnvpe │ "process.h" │ _spawnl - _spawnvpe │ Start and │
│ │ │ │ run child │
│ │ │ │ proc- │
│ │ │ │ esses. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ _threadstore │ "stdlib.h" │ _threadstore │ Accesses │
│ │ │ │ a thread- │
│ │ │ │ specific │
│ │ │ │ storage │
│ │ │ │ space. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘


[Back: Error Handling]
[Next: File and Directory Management]