answersLogoWhite

0


Best Answer

Answer POSIX threads are fairly portable. They can be emulated on uniprocessor systems at a slight (or sometimes no) penalty in speed. On shared memory multiprocessor machines, there is often kernel support for threads; this means that your application can take full advantage of all available CPUs and achieve (near) maximum performance. It is important to point out that threads libraries are predicated on shared memory. Threads won't help you on distributed memory machines Preeti

User Avatar

Wiki User

17y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

A task, also known as a process in the Unix/Linux world, is typically a program that issues the fork() system call to fork a copy of itself (referred to as spawning a child process) that is an identical copy of the parent but will typically begin execution inside a subroutine that the parent itself never executes. One example of such a program is the Apache web server daemon "httpd", which supports a user configurable number of child processes.

A threaded program is a program that does not need to fork() a copy of itself in the same manner as a self forking program. Instead, the program supports multiple threads of execution within itself. While there is some controversy among some programmers between the various advantages of one or the other of these methodologies, in practice both are well supported, efficient and widely used. It often is little more than a matter of personal preference over which is used in a given program. [JMH]

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between pthread and thread?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the actual functionality of pthread init?

Its a thread initialization function.


What type of thread are defined in pthread library?

Pthreads is a set of C language programming and is heavily used in high performance computing as well as serial applications. There are several types of threads that are defined in the Pthread library. Some of the common ones include "pthread_attr_t", which is the thread creation attribute. Another popular thread is "pthread_cleanup_entry_np_t", which is the cancellation cleanup handler entry.


What is the difference between thread and virus?

A virus runs in a thread, as do all programs. The difference between a generic thread and a virus is that the thread may not be harmful, while the virus generally is.


What is the difference between a thread and post?

In computing terms - A 'thread' is a topic of discussion, and a 'post' is a response to the 'thread'.


What is the difference between thread rope and string?

The difference between thread rope and string is that thread is more thicker than string and that string is more thinner than rope and thread is more thinner than rope there's your answer geese


Is thread as used by Intel in their marketing for Hyper-Threading Technology same as the thread that is talked about when discussing the difference between a process and a thread?

No.


What is the difference between rope and string?

The difference between thread rope and string is that thread is more thicker than string and that string is more thinner than rope and thread is more thinner than rope there's your answer geese


What is the difference between suspending stopping a thread?

Stop threading terminates the thread and cannot be resumed whereas suspend puts thread to sleep indefinitely and it can be resumed.


What is the difference between process and thread?

Basically no difference, except that process can use many threads; thread can use only one.


What is difference between thread based and use based strategies for integretion testing in object - oriented methodology?

difference b/w thread based and use based testing


What is the difference between internal flush and full hole thread?

The difference between internal flush and full hole thread is that the roots of the full-hole tool joints are rounded, and the roots for the internal-flush joints are flat.


What is the difference between a process and thread?

The same metaphor: the difference of a person (thread) and a family (process) A process has at least 1 thread and may have many threads, while 1 thread must live within a process