Thread Question
Here's a potentially dumb question, but it doesn't seem to be answered by the specification.
But which thread is supposed to be returned when you call Thread.currentThread() on a system with multiple processors/cores or SMT? The spec says that a reference to the currently executing thread is returned, but it doesn't say anything about when you have more than one executing.
But which thread is supposed to be returned when you call Thread.currentThread() on a system with multiple processors/cores or SMT? The spec says that a reference to the currently executing thread is returned, but it doesn't say anything about when you have more than one executing.
