C
Common Man
Question Number 1
Write 2 threads. A producer thread and a consumer thread.
Thread 1: The producer thread will ask the user to enter something on the screen.It will take the user input and write it into a buffer.
Thread 2: The consumer thread will read from this buffer and display what the user entered on the screen.
Question number 2
Sachin 12
Clark 45
1. Read all the data from data1.txt. This will contain name, age.
2. When someone enter a name then print the corresponding age of that person.
Write 2 threads. A producer thread and a consumer thread.
Thread 1: The producer thread will ask the user to enter something on the screen.It will take the user input and write it into a buffer.
Thread 2: The consumer thread will read from this buffer and display what the user entered on the screen.
Question number 2
Sachin 12
Clark 45
1. Read all the data from data1.txt. This will contain name, age.
2. When someone enter a name then print the corresponding age of that person.