answersLogoWhite

0


Best Answer

When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What resources are used when a thread is created?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can a thread create a process?

No, a thread can't create aprocess, because the environment of the thread is a part of a process which created this thread.


Thread used in screw jack?

acme thread


What is the name of the method used to schedule a thread for execution?

"start" You've created a Thread object and it knows its target. Now it's time to get the whole thread thing running. It's pretty straight forward: t.start(); Prior to calling start() on a Thread instance, the thread (when we use lowercase t, we're referring to the thread of execution rather than the Thread class) is said to be in the new state as we said. The new state means you have a Thread object but you don't yet have a true thread. So what happens after you call start()? • A new thread of execution starts (with a new call stack). • The thread moves from the new state to the runnable state. • When the thread gets a chance to execute, its target run() method will run.


Life cycle of thread in java?

# New state - After the creations of Thread instance the thread is in this state but before the start() method invocation. At this point, the thread is considered not alive.# Runnable (Ready-to-run) state - A thread start its life from Runnable state. A thread first enters runnable state after the invoking of start() method but a thread can return to this state after either running, waiting, sleeping or coming back from blocked state also. On this state a thread is waiting for a turn on processor. # Running state - A thread is in running state that means the thread is currently executing. There are several ways to enter in Runnable state but there is only one way to enter in Running state: the scheduler select a thread from runnable pool.# Dead state - A thread can be considered dead when its run() method completes. If any thread comes on this state that means it cannot ever run again. # Blocked - A thread can enter in this state because of waiting the resources that are hold by another thread.


Can you use unc screws in apart that has unf threads?

No. The coarse thread UNC screws will not thread into the fine thread UNF holes. UNC must be used with UNC and UNF with UNF.

Related questions

What is thread synchonisation in os?

The thread synchronization is done for sharing of a common resource, to find the no. of resources in use, its count ,maximum resources in use... To establish this the various synchronization tools used are.. Events Waitable Timer


When was By a Thread created?

By a Thread was created in 2009-01.


When was A Thread of Scarlet created?

A Thread of Scarlet was created in 1959.


When was The Spider's Thread created?

The Spider's Thread was created in 1918.


When was The Scarlet Thread created?

The Scarlet Thread was created in 1996.


When was Scarlet Thread created?

Scarlet Thread was created in 1951.


When was The Slender Thread created?

The Slender Thread was created on 1965-12-23.


When was Thread of Time created?

Thread of Time was created on 2002-03-12.


When was An Invisible Thread created?

An Invisible Thread was created on 2009-04-27.


When was Hanging On by a Thread created?

Hanging On by a Thread was created on 2010-05-04.


When was American Thread Building created?

American Thread Building was created in 1896.


When was A Common Thread created?

A Common Thread was created on 2004-05-14.