标签:get 进程 div put nbsp color empty pre class
sem odd=0,even=0,empty=n,mutex1; p1() { x=produce(); p(empty); p(mutex); put(); v(mutex); if(x%2==0) v(even); else v(odd); } p2() { p(odd); p(mutex); getodd(); v(mutex); v(empty); countodd(); } p3() { p(even); p(mutex); geteven(); v(mutex); v(empty); counteven(); }
标签:get 进程 div put nbsp color empty pre class
原文地址:https://www.cnblogs.com/yangmenda/p/11708691.html