Beispiel #1
0
            public static string Do(int poolSize, int clientSize, int executionTime, int repeat, int creationTime)
            {
                ISync start   = new Oragon.Spring.Threading.Semaphore(-(clientSize - 1));
                Job   job     = new Job(poolSize, creationTime, clientSize, start, executionTime, repeat);
                float elapsed = QueryPerformance.Query(job);

                return(String.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5:0.000} ",
                                     creationTime, executionTime, poolSize, clientSize, repeat, elapsed));
            }
Beispiel #2
0
 public AttemptReleaseWorker(Semaphore s)
 {
     sem = s;
 }
Beispiel #3
0
 public AcquireReleaseWorker(Semaphore s)
 {
     sem = s;
 }