I know it's been asked. In my application I run untrusted code in a separate thread. I want to kill this thread if its execution takes too long (I don't care about cleanup). Is there any way to do this? Is it possible for a spawned thread to handle signals?