[maemo-developers] Fwd: Multithreaded program for N800..
From: Martin Grimme martin.grimme at gmail.comDate: Tue Mar 18 10:36:54 EET 2008
- Previous message: Fwd: Multithreaded program for N800..
- Next message: Fwd: Multithreaded program for N800..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, Just be careful with threads, because they're evil (TM) ! ;) They are hard to debug, annoy users when deadlocking, and when done wrongly, can have impact on performance. My policy is to only use threads when absolutely necessary. In most cases, nonblocking IO and timeout callbacks are fully sufficient, and give more predictable and debuggable behavior. X and most UI-toolkits aren't thread-safe anyway, so threading should never be used in GUI parts. Somebody (Richard Stallmann, IIRC) said, "threads are for people who did not understand state-machines". He could be right on this part. Just my 2 ¢... Martin 2008/3/17, Markku Vire <markku.vire at movial.fi>: > > Hi, > > Yes it does. Actually most applications that belong to OS2008 are > multithreaded. This is because they use gnome-vfs, which uses threads to > implement async file operations. > > You can use GThread module from glib to write threaded applications. > > > -Markku- > > > nisha jain wrote: > > Does OS2008 supports multithreading? > > ---------- Forwarded message ---------- > > From: nisha jain <jain61 at gmail.com> > > Date: Mar 15, 2008 12:51 PM > > Subject: Multithreaded program for N800.. > > To: maemo-developers at maemo.org > > > > Hi All, > > > > I have a requierement I need to do serial communication in background and do > > processing > > simultaneously. I can do it if i have multithreaded enviornment. Please let > > me know if any > > one has used multithreaded application for N800? Does here pthreads of c can > > work? > > > > Let me know if i can plug some c code to acheive it? Also i know N800 has > > the ARM 330Hz > > processor which can support such enviornment. > > > > Regards, > > Nisha > > > > > > > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > > maemo-developers mailing list > > maemo-developers at maemo.org > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
- Previous message: Fwd: Multithreaded program for N800..
- Next message: Fwd: Multithreaded program for N800..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]