Re: Preemptive linux
- From: "Binary" <binary.chen@xxxxxxxxx>
- Date: 28 Sep 2006 00:21:39 -0700
many driver are wrote for UP before, such as a global variable is
accessed without lock.
David Schwartz wrote:
Binary wrote:
Will this challenge the driver developer, such as reentrant function
handling.
Any comments?
It rarely makes much difference because the issues with pre-emption are
more or less identical to the issues with SMP.
Imagine if you write some code that first does X, then does Y. There is
some other code, Z, that has issues if it runs between X and Y. How is
a single CPU doing "X, pre-empt to Z, then Y" any different from
another CPU doing Z after you finish X but before you start Y?
There are differences at low-level, of course. But Linux already takes
care of that in its code for things like spinlocks.
DS
.
- References:
- Preemptive linux
- From: Rafael Almeida
- Re: Preemptive linux
- From: Alexander Krizhanovsky
- Re: Preemptive linux
- From: David Schwartz
- Re: Preemptive linux
- From: Binary
- Re: Preemptive linux
- From: David Schwartz
- Preemptive linux
- Prev by Date: Re: Preemptive linux
- Next by Date: Re: Killing process started by system()?
- Previous by thread: Re: Preemptive linux
- Next by thread: Re: Preemptive linux
- Index(es):