112k views
4 votes
How do i make an Array in C++ Also how do i make it so i can Multithread on Java

User Zamotic
by
4.4k points

1 Answer

4 votes

Answer:

To start a thread we simply need to create a new thread object and pass the executing code to be called (i.e, a callable object) into the constructor of the object. Once the object is created a new thread is launched which will execute the code specified in callable. After defining callable, pass it to the constructor.

Step-by-step explanation:

User Abiezer
by
4.4k points