Groups | Search | Server Info | Login | Register


Groups > comp.os.ms-windows.programmer.misc > #9

Understand process and thread concept and difference between thread and task.?

From Neeraj <neerajsahu2003@gmail.com>
Newsgroups comp.os.ms-windows.programmer.misc
Subject Understand process and thread concept and difference between thread and task.?
Date 2012-05-21 00:24 -0700
Organization http://groups.google.com
Message-ID <44a623a1-3b78-4443-bebe-4f902b6b782a@pr7g2000pbb.googlegroups.com> (permalink)

Show all headers | View raw


Hi All,
This is my first post to this group.I want to understand what is
thread in a process and what its definition and why we need thread ?
What is the difference between thread and task.?

I have some query when I run "hello world"  c program in Visual Studio
2005 environment as mentioned below:

main()
{
   printf("hello world");
}

When I run this program in visual studio by creating a console
application project,I have seen in Task manager that there is one
process for visual studio called "devenv.exe" and other process is
conhost.exe (console window host) one process with two threads.

Can anybody tell me how this conhost.exe running with two threads and
what are those two threads...?

As per my knowledge it should be one process and one thread..?

thanks & regards
Neeraj Sahu

Back to comp.os.ms-windows.programmer.misc | Previous | Next | Find similar


Thread

Understand process and thread concept and difference between thread and task.? Neeraj <neerajsahu2003@gmail.com> - 2012-05-21 00:24 -0700

csiph-web