11. Processes
Activity 1: Making a Parent Process to Launch a Child Process
Solution
- The child should have an algorithm that looks like the following:
Child.java
9 public static void main(String[] args) throws java.io.IOException, InterruptedException { 10 int ch; 11 System.out.print ("Let's echo: "); 12 while ((ch = System.in.read ()) != '\n') 13 System.out.print ((char) ch); 14 BufferedWriter bw=new BufferedWriter( 15 new FileWriter(new File("mycal2022.txt"))); 16 int cont = 0; 17 ...