Last post Jul 04, 2013 09:28 AM by psinet
Jul 03, 2013 07:58 AM|tahazubairahmed|LINK
I have a minimum or basic level of understanding regarding Process and Threads. 1 process have more than one threads.
So the question is When i run any application in Windows OS such as Mircrosoft Windows Word than
this is a Process. But what is thread here.
Please help me to understand this concept using some these types of examples
Jul 03, 2013 08:27 AM|psinet|LINK
Process and Threads
An application consists of one or more processes. A process, in the simplest terms, is an executing program. One or more threads run in the context of the process. A thread is the basic unit to which the operating system allocates processor time. A thread
can execute any part of the process code, including parts currently being executed by another thread.
Basically, a process is the application and a thread does different work within the application.
Jul 04, 2013 02:11 AM|tahazubairahmed|LINK
Basically i understand the process and threads in definitation, but i need to get it more clear wih a example
a process is the application
When i run any application like Word than this is a porcess
thread does different work within the application.
The work which we done in any application like in word creating summary, documentation. is that is thread?
I want to clear my concept in these terms
Jul 04, 2013 04:07 AM|ijaz_asp|LINK
Each process provides the resources needed to execute a program. A process has a virtual address space, executable code, open handles to system objects, a security context, a unique process identifier, environment variables, a priority class, minimum and maximum
working set sizes, and at least one thread of execution. Each process is started with a single thread, often called the primary thread, but can create additional threads from any of its threads.
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.
for more detailed discussion, click following link,
Jul 04, 2013 09:28 AM|psinet|LINK
Right. A Process can be thought of as the application as a whole. When you open an instance of MS Word you are starting a new process.
A Thread is then used to perform some action within the application. In Word this could be a thread to monitor spell check, one to show user assistance, one to respond to the ui, etc etc. All of the threads together make up what the application is doing.