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



tải về 6.93 Mb.
Chế độ xem pdf
trang34/806
Chuyển đổi dữ liệu08.07.2022
Kích6.93 Mb.
#52607
1   ...   30   31   32   33   34   35   36   37   ...   806
The Linux Programming Interface

47
SYSTEM V SEMAPHORES
 965
47.1
Overview ................................................................................................................. 966
47.2
Creating or Opening a Semaphore Set ........................................................................ 969
47.3
Semaphore Control Operations................................................................................... 969
47.4
Semaphore Associated Data Structure.......................................................................... 972
47.5
Semaphore Initialization............................................................................................. 975
47.6
Semaphore Operations .............................................................................................. 978
47.7
Handling of Multiple Blocked Semaphore Operations .................................................... 986
47.8
Semaphore Undo Values............................................................................................ 986
47.9
Implementing a Binary Semaphores Protocol................................................................. 988


xxiv
Contents in Detail
47.10 Semaphore Limits ...................................................................................................... 991
47.11 Disadvantages of System V Semaphores ...................................................................... 993
47.12 Summary.................................................................................................................. 993
47.13 Exercises .................................................................................................................. 994
48
SYSTEM V SHARED MEMORY
 997
48.1
Overview ................................................................................................................. 998
48.2
Creating or Opening a Shared Memory Segment ......................................................... 998
48.3
Using Shared Memory ............................................................................................... 999
48.4
Example: Transferring Data via Shared Memory ......................................................... 1001
48.5
Location of Shared Memory in Virtual Memory............................................................ 1006
48.6
Storing Pointers in Shared Memory............................................................................ 1010
48.7
Shared Memory Control Operations .......................................................................... 1011
48.8
Shared Memory Associated Data Structure ................................................................. 1012
48.9
Shared Memory Limits.............................................................................................. 1014
48.10 Summary................................................................................................................ 1015
48.11 Exercises ................................................................................................................ 1016

tải về 6.93 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   30   31   32   33   34   35   36   37   ...   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