I create a class instance in a separate thread, and pass a method from the newly created class instance to the new thread .
Those. the main thread created 1 thread, which caused the 2nd thread.
- Can the last (2 thread) successfully close and free up resources in such a case?
- If an object created in the Main stream is transferred to the second stream, does the stream 2 close?