On Wed, 20 Oct 1999, Serena Del Bianco wrote: > that wont work if you're using threads either > imagine that thread 1 tries to execute that code and x is 0 > it will execute (*x == 0) and it will see the expression is true and will > execute x++ then, thread 1 is preempted and thread 2 starts executing yes, I understand SMP programming concepts... as I said, I was assuming I could garuntee testset was an *atomic* function... i.e. indivisible and possibly smaller than the timeslice of a scheduler... like a few i/o functions... (don't care to look them up now) I'd probably have to look over the SMP kernel source and see what they use for semaphores... ************ [EMAIL PROTECTED] http://www.linuxchix.org
- Re: [techtalk] GUI's Kelly Lynn Martin
- Re: [techtalk] GUI's Brendan/Coolian
- Re: [techtalk] GUI's Kelly Lynn Martin
- Re: [techtalk] GUI's Wendt,Andrew
- Re: [techtalk] GUI's Laurel Fan
- Re: [techtalk] GUI's Wendt,Andrew
- Re: [techtalk] GUI's Laurel Fan
- Re: [techtalk] GUI's Wendt,Andrew
- [techtalk] Intro (Q's on m68k, beowulf, SMP program... TeknoDragon
- Re: [techtalk] Intro (Q's on m68k, beowulf, SMP pro... Serena Del Bianco
- Re: [techtalk] SMP/threaded programming TeknoDragon
- Re: [techtalk] SMP/threaded programming Serena Del Bianco
- Re: [techtalk] SMP/threaded programming Jeff Dike
- Re: [techtalk] GUI's Kelly Lynn Martin
- Re: [techtalk] GUI's Kelly Lynn Martin
- Re: [techtalk] GUI's Caitlyn Martin
- Re: [techtalk] GUI's Aaron Malone
- Re: [techtalk] GUI's Kelly Lynn Martin
- Re: [techtalk] GUI's Kelly Lynn Martin
- Re: [techtalk] GUI's Aaron Malone
- Re: [techtalk] GUI's Laurel Fan