Вы находитесь на странице: 1из 1

Case Study: Pthreads library

Pthreads: a POSIX standard (IEEE 1003.1c) API f r thread creati n and synchr ni!ati n. API s"ecifies beha#i r f the thread library$ i%"le%entati n is u" t de#el "%ent f the library. C %% n in &'IX "eratin( syste%s. Windows 2000 Threads: I%"le%ents the ne)t ) ne %a""in(. Each thread c ntains o a thread id o re(ister set o se"arate user and *ernel stac*s o "ri#ate data st ra(e area Linux Threads: +inu, refers t the% as tasks rather than threads. -hread creati n is d ne thr u(h cl ne() syste% call. Cl ne() all .s a child tas* t share the address s"ace f the "arent tas* ("r cess) Java Threads: /a#a threads %ay be created by: o E,tendin( -hread class o I%"le%entin( the 0unnable interface /a#a threads are %ana(ed by the /12.

Вам также может понравиться