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.
2 Réponses
+ 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.
+ 4
Show your attempt first.