title: How are signals handled in Unix?
body: <p>My question is that how are signals handled in Unix. Are they handled by making new thread or there is something else? Also what is the flow of execution of programme when a signal comes?</p>
  
  <p>What I mean by flow of execution is that, let's say I am in middle of a function <code>X</code> and call to another function <code>Y</code> comes. So the compiler goes pauses the execution of function <code>X</code> and goes to function <code>Y</code>. After finishing the function <code>Y</code> the compiler again continues the execution of programme <code>X</code> from where it was paused. Similarly I would like to know how programme executes when a signal comes.</p>
  
  <p>I am using <code>settimer</code> in my programme to execute a function. But when I lower the <code>interval value</code> the function is called again and previous execution is cancelled, though I am not sure about it. The code is too messy and long so I have not posted it here.</p>
  
  <p>Thanks for looking into it..!</p>