.
D 2005-01-12T16:45:50
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nI\sam\sextremely\sinclined\sto\ssay\s"No\sWay!"\sto\sthis.\sHere's\swhy.\n\nThreads\sare\ssomething\sthat\salways\scauses\strouble,\swhat\swith\neither\stoo\smany\slocks\sor\sbizarre\srace\sconditions.\s\nCooperative\sthreading\sis\sa\sbit\sbetter\sin\ssome\sways,\sbut\nstill\scauses\sheadaches.\sAnd\syou\scan\sget\sthe\seffects\sthrough\ncareful\sdesign\sof\sevent\shandlers\sand\scallbacks\s(I've\sdone\nthis\sin\sthe\spast).\sOn\sa\spractical\simplementation\slevel,\sthe\nmain\sproblem\swith\scooperative\sthreading\sis\sthat\sit\srequires\na\stotal\sredesign\sof\sthe\sway\sTcl\suses\sthe\sC\sstack.\n\nIf\syou\sreally\sneed\sthreads,\suse\sthe\sThread\sextension\sand\sget\n*real*\sthreads\s(i.e.\sfewer\sproblems\swith\ssyscalls)\stogether\nwith\sa\sthreading/ITC\smodel\sthat\sis\smuch\seasier\sto\suse.\sIt\nmight\snot\sbe\severything\sthat\syou're\safter,\sbut\sit\sis\s*so*\nmuch\sless\seffort\son\sour\spart!\s:^)\n
J login dkf
J mimetype text/plain
J username dkf
K 849901ffffffffffffffffffffffffffffffffff
U dkf
Z a7567b7fa965e4c1e9b3e4a16838a02f