Deleting an object that spawned a thread

This seams like a silly question, but what happens when you delete an object that spawned a thread.

Is the thread destroyed instantly?

Answers


If you specified in destructor, that thread should be destroyed - yes. In other case - no.


Need Your Help

How to show git log history for a sub directory of a git repo?

git

Lets say that I have a git repo that looks like this.

Converting PHP to JavaScript. Store keys/values into an array

php javascript jquery arrays

I want to convert the following PHP code to JavaScript, This is an array of key/value pairs in PHP: