Contents
in Detail
xxv
52
POSIX MESSAGE QUEUES
1063
52.1
Overview ............................................................................................................... 1064
52.2
Opening, Closing, and Unlinking a Message Queue ................................................... 1064
52.3
Relationship Between Descriptors and Message Queues .............................................. 1067
52.4
Message Queue Attributes........................................................................................ 1068
52.5
Exchanging Messages ............................................................................................. 1073
52.5.1
Sending Messages.............................................................................. 1073
52.5.2
Receiving Messages ............................................................................ 1074
52.5.3
Sending and Receiving Messages with a Timeout ................................... 1077
52.6
Message Notification............................................................................................... 1077
52.6.1
Receiving Notification via a Signal ....................................................... 1079
52.6.2
Receiving Notification via a Thread ...................................................... 1082
52.7
Linux-Specific Features ............................................................................................. 1083
52.8
Message Queue Limits ............................................................................................. 1085
52.9
Comparison of POSIX and System V Message Queues ................................................ 1086
52.10 Summary................................................................................................................ 1087
52.11 Exercises ................................................................................................................ 1087
Chia sẻ với bạn bè của bạn: