-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving logic for creating unique ids.
- 22-bit for pid: As we can have different process ids but same thread id. - 18-bit counter: logical timestamp to keep threads and calls unique. - 24-bit for timestamp: As in case of restart or failure or pid roleovers we can have same pid and hash of thread. Covers 33 years.
- Loading branch information
1 parent
ee2c500
commit 034eadf
Showing
1 changed file
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters