Need some modification to Task 2 on last 4 problems: 4. IPC via pipes (W8). Exe

Need some modification to Task 2 on last 4 problems:
4. IPC via pipes (W8).
Exercise: Please implement the required information processing using a pair of specialized processes – client and server; provide the information communication between the processes via Linux pipes.
Examples: creation of processes fork_ex.c; communication via pipes pipe_ex.c
Directions:
• Use the data processing task of W7.
• Compose a client that periodically inputs data and sends it to server.
• Compose a server that receives data from client, processes it, and returns the result back to client.
• It is recommended to use a starter (supervisor) process to launch client and server and to organize their communication.
• Debug and test the programs.
5. IPC via messages (W9)
Exercise: Please implement the required information processing using a pair of specialized processes – client and server; provide the information communication between the processes via Linux messages.
Example: communication via messages mq_client.c, mq_server.c, mq_common.c
Directions:
• Use the data processing task of W7.
• Compose a client that periodically inputs data and sends it to server.
• Compose a server that receives data from client, processes it, and returns the result back to client.
• It is recommended to use a starter (supervisor) process to launch client and server and to organize their communication.
• Debug and test the programs.
6. IPC via semaphores and shared segments of memory (W10)
Exercise: Please implement the required information processing using a pair of specialized processes – client and server; provide the information communication between the processes via Linux semaphores and shared segments of memory.
Example: synchronization of dining philosophers via semaphores ph.c, super_ph.c; using shared segments of memory seg_ex.c, shm_client.c, shm_server.c
Directions:
• Use the data processing task of W7.
• Compose a client that periodically inputs data and sends it to server.
• Compose a server that receives data from client, processes it, and returns the result back to client.
• It is recommended to use a starter (supervisor) process to launch client and server and to organize their communication.
• Debug and test the programs.
7. IPC via IP-UDP sockets (W11)
Exercise: Please implement the required information processing using a pair of specialized processes – client and server; provide the information communication between the processes via Linux IP-UDP sockets.
Example: communication via IP-UDP sockets udp_client.c, udp_server.c
Directions:
• Use the data processing task of W7.
• Compose a client that periodically inputs data and sends it to server.
• Compose a server that receives data from client, processes it, and returns the result back to client.
• Use coordinated identification of client and server with a socket – IP-address and port number.
• Debug and test the programs.
• Try connection between remote computers
So mostly should change all the tasks to use the data processing task of W7.

Leave a Comment

Scroll to Top