[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [linux-team] Multithreading
> ben sous Linux, les threads sont crees avec vfork.
Non, pas vraiment. Ils sont créés et manipulés avec une série de fonction
pthread_machin. Mais là n'est pas mon problème. Mes threads se créent bien
et fonctionnent bien.
> ps -A S -H devrait te montrer l'arborescence des process
> spawnes (et par consequent, les threads)
Un thread n'est PAS un process. C'est une unité d'exécution à l'intérieur
d'un process. Ceci dit, je vais jetter un oeil sur ce que donnent ces
options. Merci.
--
francois.piette@swing.be
http://www.rtfm.be/fpiette/indexuk.htm
> Francois PIETTE wrote:
> >
> > Comment afficher la liste des threads d'un processus donné et le %
> > d'utilisation du CPU par chaque thread ? La commande "ps -m" sensée
> afficher
> > les informations des threads me dit "Thread display not implemented".
> >
> > --
> > francois.piette@swing.be
> > http://users.swing.be/francois.piette/indexuk.htm
> >
> > --------
> > Visit the Linux Supertore Online: http://www.redcorp.com !
> > If you want to be deleted from the list, send a mail to
> > majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> > Archive of the list: http://tania.be.linux.org/
> --------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> Archive of the list: http://tania.be.linux.org/
>
--------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/