System V queue interface optimizations
|Priority:||Normal (Code 4)||Due date:|
To avoid un-needed notifications to time-out monitor thread via pipe,
for each queue descriptor we shall keep the hash list of the message submitted in the pipe.
Thus before main thread sends request for timeout, check the hash list, if have entry, then update.
If no entry is found, add one and then add tout request to hash list and send notification via pipe.
The hash list must be synchronized.
#1 Updated by Madars about 3 years ago
The other option would be that aux thread scans for timeouts once in a second and internal pipe is not used for sending infos to aux thread. And use internal pipe only when main thread requires has file descriptors which requires to be rearmed.
#2 Updated by Madars almost 3 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
#3 Updated by Madars over 2 years ago
- Status changed from Resolved to Closed