freelanceprogrammers.org Forum Index » C
doubts on threads?
Joined: 18 Jan 2005
Posts: 1
doubts on threads?
hi,
I am a new member of this group. i have doubts on threads.
what are threads? which is faster - a thread or a process? any books on thread system calls on unix.
please give some answers.
with regrds
-uma__________________________________________________Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Joined: 19 Jan 2005
Posts: 3
doubts on threads?
> what are threads?
Threads are the part of the process.
Thread is a last executing of any process.
> which is faster - a thread or a process?
A debate can be there..
But as thread is a last executing it`s frequency could be higher.
For better demostration about thread and process
C programming by Vijay mukhi is better for novice.
cheers..
Niraj
On Tue, 18 Jan 2005 07:44:45 -0800 (PST), uma v <uma_v81@...> wrote:
> hi,
> I am a new member of this group. i have doubts on threads.
> thread system calls on unix.
>
> please give some answers.
>
> with regrds
> -uma
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> To unsubscribe : programmers-town-unsubscribe@yahoogroups.com
>
>
>
>
> ________________________________
> Yahoo! Groups Links
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/Programmers-Town/
>
> To unsubscribe from this group, send an email to:
> Programmers-Town-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> ________________________________
> Yahoo! Groups Links
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/Programmers-Town/
>
> To unsubscribe from this group, send an email to:
> Programmers-Town-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
Joined: 26 Jul 2003
Posts: 20
doubts on threads?
what are threads? which is faster - a thread or a process? any
> books on thread system calls on unix.
If you are using User Space threads, they are definitely a lot
faster than kernel-threads. The most standard threads package is
called pthreads. It has ports on almost every UNIX and even
Windows.
--
.O. A proud GNU user
..O http://www.joesteeve.tk/
OOO http://gnukid.5gigs.com/
Joined: 02 Jan 2005
Posts: 9
doubts on threads?
--- uma v <uma_v81@...> wrote:
> hi,
> I am a new member of this group. i have doubts on
> threads.
> what are threads? which is faster - a thread or a
> process? any books on thread system calls on unix.
>
> please give some answers.
>
> with regrds
> -uma
>
> __________________________________________________
> Do You Yahoo!?
Hi uma,
Threads can be called light weight processes.
If you have an option to go for threads and processes,
go for threads if you need faster processing. The only
disadvantage being that the global data gets shared
which can lead to bugs. also using threads and having
shared data requires locking mechanisms like
semaphores to be implemented.
Knowledge on threads comes mainly from programming on
them. Even man pages on pthreads (for unix) or msdn
help for C++ is sufficient to get an idea and get
going.
Regards
Manik
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Joined: 25 Jan 2005
Posts: 8
doubts on threads?
hi thread is always light i.e why they are called as Light weight process in unix.If you use process insted of thread ,tehn OS has to set aside specific memory for it.OS has to switch the processes to give them specific CPu cycles.Also for intercation b/w process we need to use IPc calls . but on the other hand thread runs in the process space of Process itself in which they are created .Also we can share data very easily with threads using Static variables.Hence thread will be the best choice.Try to read from GILBERTZ OS book.Its really good book.Or search on net.
Do you Yahoo!? Yahoo! Search presents - Jib Jab`s `Second Term`
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







