Where can i find information about whats going on behind the scene when Im creating a new
thread ?
when i write
Thread t = new Thread ()
....
t.start()....
i want to know what actually is going on…
can you please redirect me ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although managed threads don’t necessarily behave the same way as native threads, have a look at this article which covers the basic premise:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681917(v=vs.85).aspx
Specifically, when you create a thread the code will be running in the context below:
A thread is the entity within a process that can be scheduled for execution. All threads of a process share its virtual address space and system resources. In addition, each thread maintains exception handlers, a scheduling priority, thread local storage, a unique thread identifier, and a set of structures the system will use to save the thread context until it is scheduled. The thread context includes the thread’s set of machine registers, the kernel stack, a thread environment block, and a user stack in the address space of the thread’s process. Threads can also have their own security context, which can be used for impersonating clients.