Crazy threads problem with Java on WINE
I'm stuck running a Windows app on WINE. The app embeds a JVM. I've installed the Oracle JVM. It works. So far so good.
The problem comes when one of my embedded Java routines tries to start a helper thread that runs some DB routines in the background while the main thread does some other processing. Sometimes it works perfectly. And when it works, it runs 50% faster than doing everything in one thread. But sometimes, the second thread just never starts. (I know this because I added a trace statement to the beginning of its run method.)
I've tried setting the main thread to MIN_PRIORITY and the helper thread to MAX_PRIORITY, to no avail.
Is there any other way I can coax the JVM to start the damn thead?