I guess I miss some basical stuff, regadring threads. However, here my problem:
I have a monitor running. On the other hand I have a test. The test does execute a sql query several times, between each execution waiting some ms with Thread.sleep(xy).
for (int i = 0; (i < iterationsteps); i++) {
rs = myQuery.execute();
//check if rs is empty
if (!rs.next()) { Thread.sleep(1000);
}
}
Now the problem is that due to this Thread.sleep(1000) also the Monitor seems to sleep (at least it does not check). I thought a monitor is a seperate thread.