The Linux Programming Interface: a linux and unix system Programming Handbook


PROCESS CREATION AND PROGRAM EXECUTION IN



tải về 6.93 Mb.
Chế độ xem pdf
trang22/806
Chuyển đổi dữ liệu08.07.2022
Kích6.93 Mb.
#52607
1   ...   18   19   20   21   22   23   24   25   ...   806
The Linux Programming Interface

28
PROCESS CREATION AND PROGRAM EXECUTION IN 
MORE DETAIL
591
28.1
Process Accounting.................................................................................................... 591
28.2
The 
clone()
System Call .............................................................................................. 598
28.2.1
The 
clone()
flags
Argument ..................................................................... 603
28.2.2
Extensions to 
waitpid()
for Cloned Children ............................................. 609
28.3
Speed of Process Creation.......................................................................................... 610
28.4
Effect of 
exec()
and 
fork()
on Process Attributes.............................................................. 612
28.5
Summary.................................................................................................................. 616
28.6
Exercise ................................................................................................................... 616
29
THREADS: INTRODUCTION
 617
29.1
Overview ................................................................................................................. 617
29.2
Background Details of the Pthreads API ........................................................................ 620
29.3
Thread Creation........................................................................................................ 622
29.4
Thread Termination.................................................................................................... 623
29.5
Thread IDs................................................................................................................ 624
29.6
Joining with a Terminated Thread................................................................................ 625
29.7
Detaching a Thread................................................................................................... 627


Contents in Detail
xix
29.8
Thread Attributes ....................................................................................................... 628
29.9
Threads Versus Processes ........................................................................................... 629
29.10 Summary.................................................................................................................. 629
29.11 Exercises .................................................................................................................. 630

tải về 6.93 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   18   19   20   21   22   23   24   25   ...   806




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương