Hi,
I was thinking about this problem recently. One of the main drawbacks of using exec.library Tasks for me is the restriction that they can't use dos.library IO, or anything which would in turn cause a dos.library IO call. This would seem to rule out any iostream / cstdio as a consequence.
As a result of this, I used dos.library Process as the basis for a Thread class. It might be a bit churlish, but I always felt it was overkill, especially when a particular Thread might never actually do any IO (but you aren't in a position to guarentee it).
I was wondering, is it feasable to use a Message/MsgPort mechanism where a single Process would listen for incoming 'IO service request' messages from Tasks, then perform the IO on their behalf?
Such a mechanism would be wrapped behind a simple class interface so that you don't have to be aware of how it works (naturally). The main provisio would be that you have to use this provided IO class over anything in the standard library when writing code that uses the Thread classes.
Does this seem a feasable idea?
-edit-
Yay, finally thinking about coding *outside* of work!