[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] jeg kan ikke udføre cgi (c++)



Kjeld Vang Larsen wrote: 
> Lige en anden ting.
Lige en tredie ting.

Der er et kapittel om CGI programmering i webbogen
http://www.sslug.dk/linuxbog, eksemplerne er godt nok
i Perl, men indeholdet gælder også for C/C++ cgi scripts.

> Nu har jeg lavet et program, som tager ca. 203 sek at udføre
> i konsollen på min linuxbox.

Hvad laver programmet? Og hvordan måler du tiden?

> Hvordan kan det være, at der er den store forskel i
> eksekveringen af programmet??

Hvis apache deamons kører med en størrer prioritet end
dine bruger processer, så vil CGI scripts arve denne
højere prioritet og køre lidt hurtigere. En faktor 13
er dog en mistænkelig høj effekt.

Jeg lavede engang et CGI script af et life simulator,
der så løbende sendte en multipart-mime strøm af gif
billeder ned til browseren, hvor man så i et <img src="">
kunne se hvordan tilstanden udviklede sig.

Uheldigvis havde jeg vist en fejl i programmet, således
at jeg fældede tre processer der stod og kørte life
simulationer, og de 3 processer grabbede alt CPU tid på
den IBM server jeg kørte det på, fordi apache kørte
med en højrere prioritet.

-- 
* Kurosawa: http://www.designlabs.dk/husetsbio *
* Email: Carsten dot Svaneborg at risoe dot dk * 
*  http://www.fys.risoe.dk/fys/External/casv/  *




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *