×

Real-time signal handling in guest and host operating systems

  • US 8,060,788 B2
  • Filed: 11/25/2009
  • Issued: 11/15/2011
  • Est. Priority Date: 11/28/2008
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method comprising,providing an operating system process, the operating system process executing application code portions, system calls of a host operating system, and system calls of a guest operating system, the guest operating system being embedded in the host operating system, the operating system process comprising a worker thread dedicated to executing the application code portions such that when started the worker thread creates an associated signal-waiter thread dedicated to handling specific signals from the host operating system and the worker thread being masked to signals from the host operating system to the operating system process to prevent interruption of the flow of execution of the worker thread;

  • and,catching a specific signal of the signal-waiter thread from the host operating system, the catching further comprisingin response to the specific caught signal while the worker thread is executing a system call of the host operating system, the signal-waiter thread protecting the worker thread from executing application code portions and system calls of the guest operating system,the signal-waiter thread executing code portions for handling signals from the guest operating system adapted to the specific signal from the host operating system, and,the signal-waiter thread allowing the worker thread to execute application code portions and system calls of the guest operating system after the signal-waiter thread has finished handling the specific signal; and

    whereinthe signal-waiter thread is protecting the worker thread from executing application code portions and system calls of the guest operating system by acquiring a mutex lock,the signal-waiter thread is allowing the worker thread to execute application code portions and system calls of the guest operating system by releasing the mutex lock,the error handling performed by the worker thread is triggered when the worker thread fails to acquire the mutex lock because the signal-waiter thread has ended abnormally while owning the mutex lock.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×