Patent attributes
A system and method for lightweight thread synchronization using a shared memory state includes exposing, by an operating system executing on one or more processors, a memory mapping interface. The one or more processors may execute a first thread and a second thread. A supervisor in the operating system may map a memory page storing an execution state of the first thread to a memory location accessible by the second thread. The first thread may be configured to store at least one request in a shared memory. The second thread may be configured to poll the shared memory to execute the at least one request stored in the shared memory. Then, the supervisor may update the execution state of the first thread stored in the memory page. The execution state may be either a working state or a not-working state.