BlockingQueue<Long> semaphor = new ArrayBlockingQueue<Long>(3) { };
LinkedList<Throwable> excQ = new LinkedList<Throwable>();
StringBuffer errLog = new StringBuffer("-----------------------------\nSCENARIO " + scenarioName + " START\n");
for (int i = 0; i < prot.length; i++) {
TestContext t = TestContext.get();
new Thread(new ScriptRunner<E>(semaphor, excQ, errLog, t.getUserInfo(),
emf, ex, ane.getId(), ane.getClass(), pane.getId(), Arrays.asList(prot[i]))).start();
}
synchronized (excQ) {
try {
while (threadcount > 0) {