Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Help me! This is so weird! (Java Thread error)(Java Thread)
icon5.gif  Help me! This is so weird! (Java Thread error) [message #1499394] Fri, 05 December 2014 00:01
Eclipse UserFriend
This drives me crazy and I have no idea what is going on this.

This code didn't work on my desktop computer (Windows 7).
It means that Patients can't go further after printing "arrived at the doctor."
(then my CPU goes up to 100%)
I thought the code is just wrong but it went through all the way on my friend's computer(Mac). So I formatted my desktop and re-installed Windows 7 and it is still not working. I tried two other windows computers and didn't work.
However, it is working on my another friend's Mac and he tried with windows computer and it worked.
So far, this code is working properly on 3 Macs and 1 Windows computer and it is NOT working properly on 3 Windows computers. How is it possible? This doesn't make any sense to me. How could the SAME CODE make different output?

It looks like Patient can't put themselves on Queue(q)
Project1.q.add(this);
I don't know what's going on here and this is really bothering me.
Please help me, I'm dying!
Thank you so much for reading this.
  • Attachment: Project1.zip
    (Size: 1.62KB, Downloaded 113 times)
Previous Topic:What are the linker/builder/code completion/... directories?
Next Topic:random java.lang.IllegalStateException with Eclipse 4.4 and java 8
Goto Forum:
  


Current Time: Tue Apr 22 13:36:42 EDT 2025

Powered by FUDForum. Page generated in 0.03325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top