- Try to implement a concurrent version of wc(1) that uses a buffered channel.
- Next, try to implement a concurrent version of wc(1) that uses shared memory.
- Finally, try to implement a concurrent version of wc(1) that uses a monitor goroutine.
- Modify the Go code of workerPool.go in order to save the results in a file. Use a mutex and a critical section while dealing with the file or a monitor goroutine that will keep writing your data on the disk.
- What will happen to the workerPool.go program when the value of the size global variable becomes 1? Why?
- Modify the Go code of workerPool.go in order to implement the functionality of the wc(1) command-line utility.
- Modify the Go code of workerPool.go so that the size of the clients and data buffered channels can be defined using command-line arguments.
- Try to write a concurrent version of the find(1) command-line utility that...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia