Hi,
I have just started working with threads and I have a question: here's a scenario
If I have a program with Class A which has a main method, in this main method an instance of Class B is created and class B does "something". My question is if I run class A and and an instance of class B is made, would they be running on the same thread or on different threads ?
I have just started working with threads and I have a question: here's a scenario
If I have a program with Class A which has a main method, in this main method an instance of Class B is created and class B does "something". My question is if I run class A and and an instance of class B is made, would they be running on the same thread or on different threads ?