The Linux Programming Interface: a linux and unix system Programming Handbook
tải về
6.93 Mb.
Chế độ xem pdf
trang
37/806
Chuyển đổi dữ liệu
08.07.2022
Kích
6.93 Mb.
#52607
1
...
33
34
35
36
37
38
39
40
...
806
The Linux Programming Interface
53
POSIX SEMAPHORES
1089
53.1
Overview ............................................................................................................... 1089
53.2
Named Semaphores................................................................................................ 1090
53.2.1
Opening a Named Semaphore ............................................................ 1090
53.2.2
Closing a Semaphore.......................................................................... 1093
53.2.3
Removing a Named Semaphore ........................................................... 1093
53.3
Semaphore Operations ............................................................................................ 1094
53.3.1
Waiting on a Semaphore .................................................................... 1094
53.3.2
Posting a Semaphore .......................................................................... 1096
53.3.3
Retrieving the Current Value of a Semaphore ......................................... 1097
53.4
Unnamed Semaphores............................................................................................. 1099
53.4.1
Initializing an Unnamed Semaphore ..................................................... 1100
53.4.2
Destroying an Unnamed Semaphore ..................................................... 1102
53.5
Comparisons with Other Synchronization Techniques .................................................. 1103
53.6
Semaphore Limits .................................................................................................... 1104
53.7
Summary................................................................................................................ 1105
53.8
Exercises ................................................................................................................ 1105
tải về
6.93 Mb.
Chia sẻ với bạn bè của bạn:
1
...
33
34
35
36
37
38
39
40
...
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
BÁO CÁO
Tài liệu