0

Quick question, the answer is eluding me on the internet. Which is unusual.

When we reference and call a sub/function from a class is it automatically started on a new thread or will it join the main thread?

Cheers in advance.

2
Contributors
3
Replies
9
Views
3 Years
Discussion Span
Last Post by Ancient Dragon
0

-Thanks

Edit: is that also true if we start new instance of that class?

Edited by dhatsah

1

yes. If you want it in another thread then you have to specifically create a new thread, then start a new instance of the class from within that new thread. New threads are never ever started all by themselves, you have to do it yourself.

Read this article and this about how to create a thread.

Edited by Ancient Dragon

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.