wtorek, czerwca 05, 2007

Co każdy programista Windows powinien wiedzieć (tu ). Opublikowano tu listę zagadnień, które powinien zanać każdy .NET-owiec. Jednym z ważniejszych zagadnień jest znajomość różnicy między wątkiem (thread) a procesem (process).

  1. Wątek to:
    • A private virtual address space
    • An executable program that is mapped into the process' virtual address space
    • A list of open handles to system resources that are accessible to all threads in the process
    • An access token (a security context that identifies the user, security groups, and privileges associated with the process)
    • A process ID (unique identifier)
  2. Proces to:
    • The neighborhood, bounded by its limits (A private virtual address space)
    • The drug den conversion operation (An executable program that is mapped into the process' virtual address space)
    • The tally of all the stores the Narayans now run (A list of open handles to system resources that are accessible to all threads in the process)
    • Information on the outsiders0 [An access token (a security context that identifies the user, security groups, and privileges associated with the process)]
    • The stain-encrusted hoodie [A process ID (unique identifier)]
    • At least one gang member (At least one thread of execution) – after all, how do you have a drug den conversion operation without anyone working towards it?

  3. Pytanie nie jest banalne, Windows znacznie lepiej zarządza wątkami. Dlatego przy przenoszeniu do środowiska Windos oprogramowania pisanego pod Linux'a się problemy wydajnościowe, szczególnie gdy apliakcja przenoszona napisana była w procesach (wątki w Linux są nowością). Firma Zen współpracuje właśnie z MS nad zwiększeniem efektywności działania PHP (przepisuje go na wątki?) pod Windows.

Brak komentarzy: