[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: devices and task switching

In article <m0uN2oE-00033TC@tsunx.ctn.cogs.susx.ac.uk>, "James Cox" <jamesco@cogs.susx.ac.uk> writes:

|> Will MiNT task switch whilst executing device driver code? I was just
|> wondering what would hapen if two proceses made a write call 'symultainiously'
|> - would one block until the other has finished writting?

MiNT, like most other (Unix-)kernels, is single-threaded, and can only
task-switch when explicitly requested, for example by calling sleep().
Of course, you'll need something that can wake up the sleeping
process, for example an interrupt or a timer (when polling for the