IP Library Granted Patent US 7,577,945
Granted Patent B2
US 7,577,945 · App. 11/139,814 · Granted Aug 18, 2009

Memory mapped lazy signal blocking

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,577,945
App. No.
11/139,814
Granted
Aug 18, 2009
Kind
B2
Abstract

In an embodiment of the invention, a method for lazy signal blocking, includes: when a program is going to enter a critical region of code where signals will be blocked, then setting an enabled flag and marking a signal mask with signals to be blocked, wherein the enabled flag and the signal mask are in a memory address space of the program; and when the program has left the critical region of code where signals will be blocked, then clearing the enabled flag.

Claims (37)

1. A method for lazy signal blocking, the method comprising:

when a program executing in a computer is going to enter a critical region of code where signals will be blocked, then the program setting an enabled flag and marking a signal mask indicating signals to be blocked, wherein the enabled flag and the signal mask are in a memory address space of the program; and

when the program executing in the computer has left the critical region of code where signals will be blocked, then clearing the enabled flag, wherein the signal mask is in effect if the enabled flag is set, and the signal mask is not in effect if the enabled flag is not set.

2. The method of claim 1 , further comprising:

reading, by an operating system executing in the computer, the enabled flag when a particular signal is to be delivered by the operating system.

3. The method of claim 2 , further comprising:

when the operating system reads the enabled flag as set, then blocking the particular signal to be delivered by the operating system, if the signal mask indicates that the particular signal is to be blocked.

4. The method of claim 2 , further comprising:

when the operating system reads the enabled flag as cleared, then not blocking the particular signal to be delivered by the operating system.

5. The method of claim 2 , further comprising:

notifying the operating system of the memory locations of the signal mask and the enabled flag.

6. The method of claim 2 , further comprising:

notifying the operating system of the memory location of a second signal mask, wherein the second signal mask is to indicate which pending signals are waiting for delivery.

7. The method of claim 6 , further comprising:

reading the second signal mask to determine the pending signals.

8. An apparatus for lazy signal blocking, the apparatus comprising:

a processor;

a program executable on the processor;

a memory containing a memory area for the program, the memory area including a signal mask and an enabled flag;

wherein the program is configured to set the enabled flag and mark the signal mask to identify signals to be blocked, when the program is going to enter a critical region of code where signals will be blocked; and

wherein the program is configured to clear the enabled flag when the program has left the critical region of code where signals will be blocked, wherein the signal mask is in effect if the enabled flag is set, and the signal mask is not in effect if the enabled flag is not set.

9. The apparatus of claim 8 , further comprising:

an operating system executable on the processor to read the enabled flag when a particular signal is to be delivered by the operating system.

10. The apparatus of claim 9 , wherein the signal mask is configured to block the particular signal to be delivered by the operating system, when the operating system reads the enabled flag as set and if the signal mask indicates the particular signal is to be blocked.

11. The apparatus of claim 9 , wherein the signal mask is configured to not block the particular signal to be delivered by the operating system, when the operating system reads the enabled flag as cleared.

12. The apparatus of claim 9 , wherein the program is configured to notify the operating system of the memory locations of the signal mask and the enabled flag.

13. The apparatus of claim 9 , wherein the program is configured to notify the operating system of the memory location of a second signal mask, wherein the second signal mask is to indicate which pending signals are waiting for delivery.

14. The apparatus of claim 13 , wherein the operating system is configured to read the second signal mask to determine the pending signals.

15. An article of manufacture, comprising:

a machine-readable storage medium having stored thereon instructions that upon execution by a computer causes the computer to:

set an enabled flag and mark a signal mask with signals to be blocked when a program is going to enter a critical region of code where signals will be blocked, wherein the enabled flag and the signal mask are in a memory address space of the program; and

clear the enabled flag, when the program has left the critical region of code where signals will be blocked, wherein the signal mask is in effect if the enabled flag is set, and the signal mask is not in effect if the enabled flag is not set.

16. An apparatus for lazy signal blocking, the apparatus comprising:

means for setting an enabled flag and for marking a signal mask with signals to be blocked when a program is going to enter a critical region of code where signals will be blocked, and for clearing the enabled flag when the program has left the critical region of code where signals will be blocked, wherein the enabled flag and the signal mask are in a memory address space of the program, wherein the signal mask is in effect if the enabled flag is set, and the signal mask is not in effect if the enabled flag is not set.

17. The method of claim 1 , wherein marking the signal masks indicating signals to be blocked comprises marking the signal mask to indicate interruptions that are to be blocked.

18. The apparatus of claim 8 , wherein marking the signal mask to identify signals to be blocked comprises marking the signal mask to identify interruptions that are to be blocked.

19. The article of claim 15 , wherein marking the signal mask with signals to be blocked comprises marking the signal mask to identify interruptions that are to be blocked.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 18, 2021
From: OT PATENT ESCROW, LLC
To: VALTRUS INNOVATIONS LIMITED
Reel/Frame 058897/0262 →
PATENT ASSIGNMENT, SECURITY INTEREST, AND LIEN AGREEMENT Recorded Jan 26, 2021
From: HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP; HEWLETT PACKARD ENTERPRISE COMPANY
To: OT PATENT ESCROW, LLC
Reel/Frame 055269/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 9, 2015
From: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
To: HEWLETT PACKARD ENTERPRISE DEVELOPMENT LP
Reel/Frame 037079/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 24, 2005
From: GOOTHERTS, PAUL; LARSON, DOUGLAS
To: HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
Reel/Frame 016916/0343 →