<i>after command hangs when system time changes</i> status still Open with 4 other changes
by
.
D 2007-03-12T23:27:51
J icomment Logged\sIn:\sYES\s\nuser_id=99768\nOriginator:\sNO\n\nThe\strouble\swith\swhat\syou're\sdemanding\sis\sthat\sit\sworks\sonly\sif\sthere\sis\sonly\sone\s[after]\sactive,\sanywhere\sin\sthe\sprogram.\s\sAs\ssoon\sas\sthere\sis\smore\sthan\sone,\syou\sget\sback\sinto\sthe\ssame\ssituation.\s\sCertainly,\syou\scan\suse\ssleep()\sor\sa\swaitable\stimer\sto\sdelay\suntil\sit's\stime\sfor\sthe\s*first*\safter\sto\swake\sup.\s\sBut\sin\sthe\ssituation:\n\n\s\s\s\s\safter\s10000\s{do\ssomething}\n\s\s\s\s\safter\s5000\s{do\ssomething\selse}\n\nonce\syou've\sawakened\son\sthe\sfirst\s[after],\syou\shave\sto\sfigure\sout\swhat\stime\sthe\s*second*\sone\sshould\sfire.\s\sIf\sthe\sclock\shas\sbacked\sup,\show\sdo\syou\sdo\sthat\sand\sget\sthe\sbehaviour\syou\sdemand?\s\sSpinning\sa\sthread\sper\s[after]\sso\sthat\sthey\scan\sall\suse\sblocking\stimers\swould\sprobably\sbe\sinfeasible\s-\sI\sknow\sof\sapplications\sthat\shave\sthousands\sof\s[after]s\sscheduled.\n
J login kennykb
J mimetype text/plain
J username kennykb
K 1464890fffffffffffffffffffffffffffffffff
U kennykb
Z 1d7ba53e8b22c3f06d5ae37d13cc8c40