¡GoConqr estrena diseño! Cuéntanos qué te parece.

Diapositivas

Sin título

Aman sharma Inglés 3 diapositivas

Diapositivas del conjunto (3)

  1. Explain event loop in detail?

    • Node takes an approach that serves all the request from a single thread known as the event loop. When node receives an request from the client it will put the request in the event queue, the event loop runs indefinetly to retrieve an request in the event queue, in one case if the request doesn't involve a blocking I/O operation node will simply process and prepare the response and sent it back to the client, in another case if the request requires blocking operations, node will deligate it to a worker tread in thread pool to work on the blocking I/O operations. The blocking I/O operation may be associated with the callback function. When the blocking I/O operations completes, the worker thread will prepare the response and send it back to event loop which then runs the callback function and send back response to the client. Therefore the main program is not blocked by the I/O operations so node keeps a single threaded event loop through our code and everything else runs in parallel and that's the secret why node has such a high I/O performance. .
  2. data types in js?

    • 1. Number
    • 2. String
    • 3. Undefined
    • 4. Null
    • 5. Boolean
    • 6. Symbol ( data type whose instances are unique and immutable. )
  3. Syncronous and asyncronus?

    • Synchronous JavaScript: As the name suggests synchronous means to be in a sequence, i.e. every statement of the code gets executed one by one. So, basically a statement has to wait for the earlier statement to get executed.

Información

Descripción
Diapositivas sobre Sin título, creado por Aman sharma el 09/12/2020.
Creado por
Aman sharma
Visitas
1
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?