Hi all,
1)I was reading in wikipedia about asynchronous I/O.There was a statement like this regarding how asynchronous I/O are supported in OS level in Unix: ========================= Process Available in early Unix. With a multitasking operating system each I/O flow can be allocated to a separate (sub)process. This is a heavyweight solution, and coordinating the flows can be difficult. Because of the natural process isolation it may not even be possible to get the desired behavior; the attempt to partition the task for asynchronous I/O may do more harm than good. ==========================================================I am not able to realise how this sort of design will do more harm?Do people here who have used such a design faced any problems?
2)When we say asynchronous in OS perse,I would like to understand what conditions need to be met to say a system is asynchronous.I am also aware of using signals and events in some of RTOS.Heard that they are facilties provided by OS to realise asynchronous operations.With respect to this,lets take one example where there are many tasks(not a real one): I have task1.Inside this task I raise a signal(software signal) to another task,when ever My count completes 10. The signal handler is supposed to reset the counter value to zero after doing couple of operations like either turning on a motor and so on. How can we say this is asynchronous?The term asynchronous means OS does not wait on any I/O operations meaning,except the task or process involved in the I/O transaction,other tasks process can continue their work without blocking the CPU.In the above example given,I am not able to realise how other tasks can execute when my counter has not finished counting ten,I believe in this aspect,unless a task releaves a CPU other tasks will not execute.So this makes me wonder whether asynchronous systems are created by design and not by an explicit requirement on the system itself.Is this correct?I have cross posted in comp.realtime also to gather more views on this topic.
Looking farward for your replies and advanced thanks for the same,
Regards, s.subbarayan