lotus

previous page: 5. Some terminology (Programming threads)
  
page up: Threads Programming FAQ
  
next page: 5.2. Asynchronous and blocking system calls (Programming)

5.1. (DCE, POSIX, UI) Async safety (Programming threads)




Description

This article is from the Threads Programming FAQ, by Bryan O'Sullivan bos@serpentine.com with numerous contributions by others.

5.1. (DCE, POSIX, UI) Async safety (Programming threads)

Some library routines can be safely called from within signal
handlers; these are referred to as async-safe. A thread that is
executing some async-safe code will not deadlock if it is interrupted
by a signal. If you want to make some of your own code async-safe, you
should block signals before you obtain any locks.

 

Continue to:













TOP
previous page: 5. Some terminology (Programming threads)
  
page up: Threads Programming FAQ
  
next page: 5.2. Asynchronous and blocking system calls (Programming)