Skip to main content

why java thread in cvm sometimes seems hang until some console input

1 reply [Last post]
Joined: 2004-11-05

Hi, I just encountered a tricky problem, under some circumstance, the java thread in jit-cvm may hang for a while until someone input in the console. while without jit, this problem seldom occurs(almost never). My program is a c-code program, it will create a cvm in the same process and execute some java codes. When this problem occurs, through the log informatin , I find only java thread hangs, other native thread can run correctly. This situation is a little tricky, Do someone have some clue??? Thanks very much

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-08-06

May be a stretch, but sometimes with some C code such as the printf, scanf, and similar stdio related functions, do not actually output until the buffer used by the function is filled up or is flushed.