on 02-28-2006 2:46 PM
hi ,this is guruvulu bojja
what is the diff between thread and task .
can u give me the example for distinguish a thread and a task .
How can i know thread is better than a task .
please tell me what is the task in o/s level and task.
<b>how the o/s distinguish a therad and task.</b>
Hi Guruvulu,
<b>Threads</b> enhance performance and functionality by allowing a program to efficiently perform multiple <b>tasks</b> simultaneously.
In the case of <i><b>common memory</b></i> <b>threads</b> naturally have shared data regions while it has to be specially created and initialized for <b>tasks</b>.
Simply put, a <b>thread</b> is a program's path of execution. It allows execution of two or more sections of a program at the same time.
Regards,
Pooja.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A thread is a single sequential flow of control within a program.
Task means for example, Writing data to a file ,Reading data from a file etc..
So we can create thread for each task(One Thread to write data to a file and another Thread to read data from a file, etc.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Task
http://www.answers.com/topic/task-computers?method=22
www.answers.com is a good site for searching technical information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know why this question is in this forum, but anyways, read this for starters:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.