Messages in this thread | | | From | "Stephen C. Tweedie" <> | Date | Thu, 22 Apr 1999 23:10:05 +0100 (BST) | Subject | Re: 2. I need to do block I/O, both synchronously and asynchronously. |
| |
Hi,
On Thu, 22 Apr 1999 12:49:47 +0000, Richard Dynes <rdynes@varcom.com> said:
> I sugggest (1) the plethora of drivers in the source, and (2) > Alessando Rubini's Linux Device Drivers, published by ORA.
>> 1. What is the correct way to do a generic thread yield?
> Assuming a __kernel__ thread yield, schedule() is correct.
That's not good enough to guarantee that the process isn't immediately rescheduled. See sys_sched_yield(), which may do what you want.
--Stephen
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |