stason.org logo lotus


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

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

 Books
 TULARC
















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:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

programming, software, coding, threads programming







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