ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Describe the difference between a Thread and a Process?
 Question Submitted By :: .NetGuru
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 1
- A Process has its own memory space, runtime enivorment 
and process ID. A Thread runs inside a Process and shares 
its resources with other threads. 

        - A thread is a path of execution that run on CPU, 
a proccess is a collection of threads that share the same 
virtual memory. A process have at least one thread of 
execution, and a thread always run in a process context.

	- Process is unit of allocation while Thread is 
unit of execution. Each process has one or more threads. 
Each thread belong to one process
 
Is This Answer Correct ?    4 Yes 2 No
Chandra Sekhar Dola
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 2
exact it is right.
Thanks a lot
after a long time i found the answer for this question.
thankx

saisudhakar
 
Is This Answer Correct ?    3 Yes 1 No
Saisudhakar
 
 
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 3
Thread is the path of execution that run on cpu.
process is a collection of threads that share the same 
virtual memory.
 
Is This Answer Correct ?    3 Yes 2 No
Saiish Bhat
 
  Re: Describe the difference between a Thread and a Process?
Answer
# 4
Q. What is the diff b/w Thread and Process?
Solution:
        A Process has its own memory space, runtime environment 
and process ID. A Thread runs inside a Process and shares its resources
 with other threads.

Thread is a path of execution that run on CPU,a proccess is a collection 
of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context.
		
Process is unit of allocation while Thread is unit of execution. Each process has one or more threads. Each thread belong to one process


The major difference between threads and processes is 

1.	Threads share the address space of the process that 
created it; processes have their own address.

2.	Threads have direct access to the data segment of its 
process; processes have their own copy of the data segment 
of the parent process. 

3.	Threads can directly communicate with other threads of 
its process; processes must use interprocess communication 
to communicate with sibling processes. 

4.	Threads have almost no overhead; processes have 
considerable overhead.

5.	New threads are easily created; new processes require 
duplication of the parent process.


6.	Threads can exercise considerable control over threads of 
the same process; processes can only exercise control over 
child processes. 

7.	Changes to the main thread (cancellation, priority 
change, etc.) may affect the behavior of the other threads 
of the process; changes to the parent process does not 
affect child processes. 

8.	Thread is light weight process having its own stack but collection of related threads can share same execution memory. process is program or part of program under execution .every process can have its own execution environment.

9.	A thread is code that is to be serially executed within a process. A process is a collection of virtual memory space, code, data, and system resources.
 
Is This Answer Correct ?    0 Yes 0 No
Anubhav
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
explain about Back ground process control in .net Infronics1
difference between caching objects in session objects?  2
Types of optimization and name a few and how do u do? Accenture1
What data type does the RangeValidator control support? Visual-Soft3
Write a code for "RequiredFieldValidator" in java script Wipro3
with which controls you worked in Asp.net 2.0? HP2
About session modes Wipro2
What does the "EnableViewState" property do? Why would I want it on or off?  3
How to use one project files into another project? HP3
Describe the difference between a Thread and a Process?  4
What is difference between masterpage and user control, what is the objective of master page when we had user control in .NET 1.1 version DELL2
Where is ViewState information stored? HCL6
About Garbage Collector? Microsoft3
what is view state? Satyam9
How do you add a javascript function for a link button in a datagrid ? Microsoft4
In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events? Syntax-Softtech5
How do you perform validations ? Microsoft1
hi i have a problem regarding to datagrid in aspdotnet.i have a datagrid in my application.i have to place add,edit,delete buttons or links what ever it may be. now the problem is if i click on add button then the page has to redirected to another form called "xyz.aspx" and if i click on edit button the page has to redirected to another form called "abc.aspx".i am phasing the problem that if where ever i click on the datagrid the cursor goes to gv1_SelectedIndexChanged event.please tell me the solution about the code. Lambent4
How many view state can be hold by a aspx page ? Intellevate3
# What is the transport protocol you use to call a Web service?  1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com