[Boost-bugs] [Boost C++ Libraries] #4773: boost::this_thread::sleep(Microsecond Resolution)

Subject: [Boost-bugs] [Boost C++ Libraries] #4773: boost::this_thread::sleep(Microsecond Resolution)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-23 02:02:11


#4773: boost::this_thread::sleep(Microsecond Resolution)
-----------------------------------------------------------------------------------+
 Reporter: dominicstreeter@… | Owner: anthonyw
     Type: Patches | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.44.0 | Severity: Optimization
 Keywords: Timing Microsecond Millisecond Precision Resolution Economic Practice |
-----------------------------------------------------------------------------------+
 You cannot manage a thread for a process that needs to update at once per
 millisecond when the resolution of waiting is this low. If a process takes
 3 microseconds you can wait arbitrarily for 1.003ms.

 If you expand this arbitrary method to a process that takes 0997micro
 seconds to complete you can spend 1.997ms running a cycle making a process
 run at half the speed required.

 Game Logic and any process that needs to respond on the millisecond has to
 poll currently and only be timed to account for lag in any well written
 software it is good practice and economical to wait where appropriate. You
 can waste 0.999% of a second of energy per second per thread otherwise.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4773>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC