Server Technology PPNT Uživatelský manuál Strana 51

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 95
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 50
Java Servlets: Advantages(1/4)
Efficient
With traditional CGI: for e ach request a new OS process is started
Java VM, servlet container, and a particular s ervlet started only once:
each request handled by a Java thread
Lightweight Java threads instead of heavyweight OS processes
With CGI: if N simultaneous requests than the code is loaded N times
With servlets: N threads but only one copy of code in the memory
Optimization possibilites with servlets: caching, keeping database
connections open, etc.
answer from CGI: Fast-CGI (http:// www .fas tcgi .com)
(51/95)
Zobrazit stránku 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 94 95

Komentáře k této Příručce

Žádné komentáře