1 Jan 2004 07:10
Re: synchronization without hardware support
pankaj chauhan <chauhan_ait <at> yahoo.co.in>
2004-01-01 06:10:00 GMT
2004-01-01 06:10:00 GMT
can u plz explain how these techniques work without any lock prefix kind of thing. i know only about the implementation of spinlocks for ix86, in which we have to use a lock prefix before the instructions for testing and storing operation of the spinlock. i am still not understanding how we can prevent any other processor from getting control of the bus before our lock operation is complete , say we have just tested the spinlock and found it to be unlocked , but before we set it to be locked the control of bus goes to another processor which also operates on the same lock , now if we do'nt have any hardware support for preventing the control of bus going to another processor during an operation that has to be atomic, how can we ensure atomicity and avoid races. Rgds, pankaj chauhan --- Avishay Traeger <atraeger <at> cs.sunysb.edu> wrote: > There are software implementations for locking. > I've made my own > semaphore classes in the end and used them for class > projects, and if I > remember correctly there are a couple other ways of > implementing > synchronization. >(Continue reading)
RSS Feed