a possible timing issue in jshell
Yacobellis, Robert
ryacobellis at luc.edu
Tue Dec 29 03:21:04 UTC 2015
Greetings,
I noticed that sometimes when I print to the console the printed output is intermixed with the jshell prompt. I think this might be happening because the println is running in a different process from jshell itself. I've attached a printout take from a cmd jshell execution that shows this (the System.out.println() output is intermixed with the jshell prompt). I've gotten around it by defining my own println, print, and printf functions that include a 5 ms Thread.sleep following the output - that seems to be enough time to avoid the problem.
Regards,
Bob Y.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jshell_thread_timing_issue.txt
URL: <http://mail.openjdk.java.net/pipermail/kulla-dev/attachments/20151229/bfe2d9c6/jshell_thread_timing_issue.txt>
More information about the kulla-dev
mailing list