0

I want help pls how to.solve this problem

Write a console app that offers the user the ability to work in interactive mode. Namely, the program should be able to:  1. Create 2 or 3 processes;  2. Create and use an appropriate channel (pipe or fifo) for communication between processes;  3. Obligation of certain activities for the process (creating a file, renaming, changing access rights, reading / writing data);  4. The customer should be able to decide whether to complete the activity with the program or not.

14th Dec 2020, 3:10 PM
Om Sri
2 Antworten
+ 2
It sounds like you're expected to write a little command interpreter, but the description doesn't entirely make sense to me. Why a limit of 2 or 3 processes? What's a "fifo" (first in first out queue) as opposed to a pipe? What is an "obligation" of "certain activities"? As a student I would first ask the teacher, but if that didn't clear things up I'd just write a little command interpreter that supports running programs (a.k.a. creating processes), use pipes (a pipe /has/ fifo behavior), and file handling commands for creating, renaming, changing access, displaying (reading) and copying (writing) files. It's quite a lot of work.
17th Dec 2020, 12:01 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
Show your attempt first.
14th Dec 2020, 4:12 PM
The future is now thanks to science
The future is now thanks to science - avatar