I am sorry that I misunderstood the question... Anyway, I think critical sections can be used within the same thread. Although developed for multithreading, I suppose that critical sections do not understand which thread they should give access; they just know which resource to lock. Harsha ---------------------------------- http://www.ece.arizona.edu/~hpg ----------------------------------