Assume I have the following fragment of code:
Thread x = new Thread() {
public void run() {
while (true) {
// do something
}
}
};
Thread y = new Thread() {
public void run() {
while (true) {
// do something
}
}
};
x.start();
y.start();
Now my question is since these two threads both run infinite loops, will they both start running at the same time?