-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main_features_node.js
39 lines (25 loc) · 1.22 KB
/
Main_features_node.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Q) What are 7 main features of node.js ?
• Single threaded
• Asynchronous
• Event-driven
• V8 Javascript engine
• Cross-Platform
• NPM
• Real-Time Capabilites
Q) What is Single Threaded Programming?
A single-threaded language is one that can execute only one task at a time. The program will execute the tasks in sequence, and each task must complete before the next task starts.
Q) What is Synchronous Programming?
One task id performed only after one if performed, synchronous is blocking approach
Q) What is multi threaded prgramming?
It is good for CPU intensive process
Q) What is asynchronous prograaming?
we know synchronous is blocking approach
Q) What are events, event emitter , event queue , event loop and event driven?
Q) What are main features and the advantages of nodejs?
•asynchronus - handle multiple concurrent requests and non blocking execution of thread
•V8 JS engine - excutes code very fast
•Event-driven architecture - handling events will be very easy
•cross-platofrm - supports deployment on various operating systems, enhancing flexibility
•javascript
Q) What are disadvantages of nodejs?
Avoid in CPU intensive tasks, multi threaded will be btter compared to