Quantcast
Channel: How to make a timestamp atomic/interrupt safe in Python? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Aaron for How to make a timestamp atomic/interrupt safe in Python?

Python doesn't guarantee any atomic operations other than specific mutex constructs like locks and semaphores. Some operations will seem to be atomic because the GIL will prevent bytecode from being...

View Article



How to make a timestamp atomic/interrupt safe in Python?

This should be easy. After looking at what's going on, I'm not so sure. Is the writing/reading of a single binary integer atomic? That's how the underlying hardware does reads and writes of 32-bit...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images