4 ms·
One mildly interesting fact MANY programmers get wrong about the is_computer_on function: It is threadsafe. The documentation is very clear about this.
by jancsika 1y ago
One mildly interesting fact MANY programmers get wrong about the is_computer_on function:
It is threadsafe. The documentation is very clear about this.
- stogot 1y agoCould you clarify this analogy? I’m confused
- conorcleary 1y agoMaybe something about programs being able to skip the 'is there a power cord connected to this PSU?' type jesting?
- LorenPechtel 1y agoYou could legitimately have a is_computer_on function. Some devices have wake-on-lan type functionality. What about the code involved?