REQ: Help on server testing

Antonis Kanavouras ankan at delirio.gr
Fri Aug 30 15:46:01 EEST 2002


> An milame gia running threads: Pisteveis oti mporeis na ylopoihseis poio
kala
> kapoio eidos multitasking sto programma soy apo oti to kanei o kernel ?
>
> An milame gia idle threads: Den yparxei sxedon kamia diafora.
>
> Stin prokeimeni periptosi einai mallon lathos na dimioyrgisei
> thread/connection giati tha faei ta niata toy se IPC gia na ta kanei na
> synenooyntai metaksy toys, mias kai kati tetoio einai aparaitito.

Koita pws to skeftomai:

-To multiplexing to analamvanei ex oloklhrou h main thread
- O user A dinei kapoio input
- Me to pou pairnei ampariza (apo thn poll()) h socket tou A xekinaei mia
thread me xamhloterh priority
  pou kanei process o,ti edwse o A. Meta enhmerwnei thn main thread gia tis
apofaseis ths
- Sto metaxy h main thread einai eley8erh na dextei input apo ton user B,C,D
klp

To idio senario isxyei kai otan o server prepei na steilei response ston A
-Xekinaei mia 8nhsigenh thread pou molis steilei o,ti einai na steilei
pe8ainei kai sto metaxy h main thread
 mporei na kanei alles douleies.

Den xerw an ayto einai kerdos se ena mhxanhma me 1 epexergasth alla se SMP
fantazomai oti exei nohma
(xwris na eimai sigouros)

Antonis





More information about the Linux-greek-users mailing list