库纳尔和霍洛维茨报告说,那些使用免提电话之类的人,他们的平均反应时间比不使用免提电话的人慢212毫秒。
As Kunar and Horowitz report, those who were making the equivalent of a hands-free call had an average reaction time 212 milliseconds slower than those who were not.
不使用互斥对象时,即使主线程在thread_function线程睡眠一秒钟期间内对myglobal加一,thread_function苏醒后也会覆盖主线程所加的值。
Without the mutex, thread_function will overwrite the incremented value when it wakes up if our main thread increments myglobal during thread_function 's one-second nap.
应用推荐