cancel
Showing results for 
Search instead for 
Did you mean: 

what is the difference between thread and task

Former Member
0 Kudos

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>

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.)

Former Member
0 Kudos

Hi,

Task

http://www.answers.com/topic/task-computers?method=22

www.answers.com is a good site for searching technical information.

Former Member
0 Kudos

I don't know why this question is in this forum, but anyways, read this for starters:

http://en.wikipedia.org/wiki/Thread_%28computer_science%29