answersLogoWhite

0


Best Answer

A bobbin or a Spool

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the thing that holds thread called?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is fine cotton thread called?

pomp


What is single thread of screw thread?

when lead of the screw is equal to the pitch it is called single threaded screw


What do you mean by multithreaded program Explain the life cycle of a thread?

Thread exists in several states. A thread just created is in the born state. When the threads start method is called, it enters the runnable (ready) state. Then the system assigns a processor to the thread. A thread enters the dead state when its run method completes or terminates for any reason. When a sleep method is called in a running thread, that thread becomes ready after the designated sleep time expires. Even if a processor is available, sleeping thread can not use it. A running thread can enter a blocked state.


Can the run method be called directly to start a thread?

No. If you want to start a new thread of execution, you need to call the start() method of the thread. Also, the run() is like any other java method and you can invoke it directly but if you do so, it would be called as part of the current programs thread and not as a new thread. When the start() method is invoked, the JVM creates a new thread and automatically calls the run() method and that is why a new thread gets started and not by calling run() directly.


What happens to child thread when you delete main thread during run-time?

In Java, if the main thread somehow exits then all other threads will stop executing. This generally does not happen, as the main thread will wait for all child threads to terminate before the main thread itself finishes. Interrupting this process is hard to do short of an un-handled exception or a call to System.exit. If the child thread is also a daemon thread, then the child thread will continue to execute. If the child thread is a normal thread then, the moment System.exit is called, the child thread also terminates If you call the join() method from the child thread, then the main thread will wait until the child is over before executing the System.exit