Next: About this document ...
Up: OPERATING SYSTEMS LABORATORY V
Previous: Examples&Exercises:
In this assignment, you're to sort by creating processes.
- one parent and two childs,
- parent is responsible for creating the numbers (by any means; random generator, reading from a file http://siber.cankaya.edu.tr/OperatingSystems/cfiles/unsorted.txt unsorted.txt), ...),
- after generating, put to an array, creating first child,
- the first child should create the second one,
- each child should sort the half of the array.
- use the sorting algorithm you used in the previous assignment,
- do the error checking whenever it is necessary (if array is allocated or if childs are created or if file is opened succesfully, etc.),
- make sure that parent does not exit before childs complete.
Cem Ozdogan
2009-07-16