Using a boolean variable will do the trick if combined with the FLUSH directive in both threads (after modifying the flag and before reading it). Atomicity is not an issue here since it is a matter of setting a flag in one thread and checking for a flag being set or not in another thread. /Nils