2. Develop a program to do the follows. (30pts) a) Read even
numbers one by one from the message queue used in Question 1. b)
After reading an even number, write the even number +1 back to the
message queue. For example, if the read even number is 8, write 9
(8+1) back to the message queue. c) Repeat a) and b) until no more
even number in the message queue. Use IPC_NOWAIT to control the
loop.
2. Develop a program to do the follows. (30pts) a) Read even numbers one by one from the message queue used in Question
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am