Herzlich Willkommen, lieber Gast!
  Sie befinden sich hier:

  Forum » GNU/Linux » threads

Forum | Hilfe | Team | Links | Impressum | > Suche < | Mitglieder | Registrieren | Einloggen
  Quicklinks: MSDN-Online || STL || clib Reference Grundlagen || Literatur || E-Books || Zubehör || > F.A.Q. < || Downloads   

Autor Thread - Seiten: > 1 <
000
21.09.2003, 21:45 Uhr
~nAvi
Gast


Ich brauche in c++ was wo ich zwei sachen gleichzeitig laufen lassen kann.
Ich glaige dass sind doch threads oder?
Kann mir jemand erklären wie ich ein thread in c++ öffne/benutze?
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
001
21.09.2003, 23:03 Uhr
Windalf
Der wo fast so viele Posts wie FloSoft...
(Operator)


Dazu müssten wir den Betriebssystem wissen
--
...fleißig wie zwei Weißbrote
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
002
22.09.2003, 09:33 Uhr
~nAvi
Gast


linux
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
003
22.09.2003, 09:51 Uhr
virtual
Sexiest Bit alive
(Operator)


Mit pthread_create startest Du einen Thread, mit pthread_join wartest Du auf dessen beendigung. Darüberhinus gibt es mit mtuxen und conditions Synchronisierungsmöglichkeiten für Threads.
mach mal

Code:
man -k pthread



--
Gruß, virtual
Quote of the Month
Ich eß' nur was ein Gesicht hat (Creme 21)

Dieser Post wurde am 22.09.2003 um 09:51 Uhr von virtual editiert.
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
004
22.09.2003, 12:10 Uhr
~nAvi
Gast


Hab wohl kein manual dafür:

pthread: nothing appropriate

Hab auch bei google bisher nix gescheites gefunden.
Alle tutorials sind down
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
005
22.09.2003, 15:11 Uhr
virtual
Sexiest Bit alive
(Operator)


Das sind die Funktionen:

Code:
pthread_cond_broadcast (3thr) - operations on conditions
pthread_cleanup_push (3thr) - install and remove cleanup handlers
pthread_condattr_init (3thr) - condition creation attributes
pthread_setcanceltype (3thr) - thread cancellation
pthread_attr_getinheritsched (3thr) - thread creation attributes
pthread_cond_wait (3thr) - operations on conditions
pthread_mutexattr_setkind_np (3thr) - mutex creation attributes
pthread_getspecific (3thr) [pthread_key_create] - management of thread-specific data
pthread_detach (3thr) - put a running thread in the detached state
pthread_cleanup_pop_restore_np (3thr) - install and remove cleanup handlers
pthread_key_create (3thr) - management of thread-specific data
pthread_attr_getschedparam (3thr) - thread creation attributes
pthread_attr_getscope (3thr) - thread creation attributes
pthread_cleanup_push_defer_np (3thr) - install and remove cleanup handlers
pthread_getschedparam (3thr) - control thread scheduling parameters
pthread_condattr_destroy (3thr) - condition creation attributes
pthread_mutexattr_destroy (3thr) - mutex creation attributes
pthread_create (3thr) - create a new thread
pthread_mutex_trylock (3thr) - operations on mutexes
pthread_mutex_destroy (3thr) - operations on mutexes
pthread_attr_setdetachstate (3thr) - thread creation attributes
pthread_attr_setschedpolicy (3thr) - thread creation attributes
pthread_cond_signal (3thr) - operations on conditions
pthread_join (3thr)  - wait for termination of another thread
pthread_exit (3thr)  - terminate the calling thread
pthread_equal (3thr) - compare two thread identifiers
pthread_setcancelstate (3thr) - thread cancellation
pthread_setspecific (3thr) [pthread_key_create] - management of thread-specific data
pthread_mutex_init (3thr) - operations on mutexes
pthread_once (3thr)  - once-only initialization
pthread_setschedparam (3thr) - control thread scheduling parameters
pthread_cleanup_pop (3thr) - install and remove cleanup handlers
pthread_attr_getdetachstate (3thr) - thread creation attributes
pthread_mutex_unlock (3thr) - operations on mutexes
pthread_attr_init (3thr) - thread creation attributes
pthread_testcancel (3thr) - thread cancellation
pthread_cond_init (3thr) - operations on conditions
pthread_attr_getschedpolicy (3thr) - thread creation attributes
pthread_mutexattr_getkind_np (3thr) - mutex creation attributes
pthread_attr_destroy (3thr) - thread creation attributes
pthread_mutexattr_init (3thr) - mutex creation attributes
pthread_attr_setinheritsched (3thr) - thread creation attributes
pthread_cond_destroy (3thr) - operations on conditions
pthread_cancel (3thr) - thread cancellation
pthread_sigmask (3thr) - handling of signals in threads
pthread_mutex_lock (3thr) - operations on mutexes
pthread_self (3thr)  - return identifier of current thread
pthread_attr_setscope (3thr) - thread creation attributes
pthread_attr_setschedparam (3thr) - thread creation attributes
pthread_key_delete (3thr) [pthread_key_create] - management of thread-specific data
pthread_kill_other_threads_np (3thr) - terminate all threads in program except calling thread
pthread_atfork (3thr) - register handlers to be called at fork(2) time
pthread_cond_timedwait (3thr) - operations on conditions
pthread_kill (3thr)  - handling of signals in threads


Funktionsname in google eingeben und gewinnen!
--
Gruß, virtual
Quote of the Month
Ich eß' nur was ein Gesicht hat (Creme 21)
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
006
22.09.2003, 18:08 Uhr
~nAvi
Gast


Ok
Vielen Dank
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
Seiten: > 1 <     [ GNU/Linux ]  


ThWBoard 2.73 FloSoft-Edition
© by Paul Baecher & Felix Gonschorek (www.thwboard.de)

Anpassungen des Forums
© by Flo-Soft (www.flo-soft.de)

Sie sind Besucher: