From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 6 Dec 2005 17:16:57 -0500 From: ISHWAR RATTAN To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [9fans] alarm() and threads.. Topicbox-Message-UUID: bb308cb8-ead0-11e9-9d60-3106f5b1d025 What is the behavior of using alarm() in one of the threads in a multi-threaded program? Which will thread will get the note? Or it is undefined -- alarm() can be used at process level. Also, where can I find sample code to handle terminal abort/interrupt? -ishwar