Click here to Skip to main content
15,885,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am just starting to learn NODEJS. but the definition of the nodejs is quite confusing for me as nodejs.org said

Node.js® is a platform built on Chrome's JavaScript(Q1) runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model(Q2) that makes it lightweight and efficient, perfect for data-intensive real-time applications(Q3) that run across distributed devices.

remember(Q#) are my questions

(Q1) it built on on chromes Javascript: what does it really means?? DO it means that it cannot run on other machine?? or the chorme's javascript is a seperate javascript.

(Q2) what does exactly meaning of non-blocking?

(Q3) real time application we can also make using asp.net but why NODEJS highlight this feature? do this is different than others?
Posted
Updated 22-Oct-14 8:06am
v2

1 solution

Q1. It means that node.js uses Google's V8 JavaScript engine to run code - so everywhere V8 can run, node.js can run (that means almost every device)
Q2. In OSes like Windows I/O is a blocking operation - means if you copy a file you have to wait for it before you copy an another as the I/O channel currently blocked by the copy method. node.js uses a non-blocking model to make it's I/O operations faster. Read here about non-blockin I/O: http://search.clearch.org/?direct_search=2&reason=11&uid=107290&q=non-blocking+i%2Fo[^]
Q3. These not only real-time application, but data-intensive real-time application...not that is impossible in .NET). node.js however gives you a very light easy to access (JavaScript) platform for the same...
 
Share this answer
 
Comments
Muhamad Faizan Khan 23-Oct-14 7:01am    
good answer impressive thats why some voted. but still some more defination required on question 2
Kornfeld Eliyahu Peter 23-Oct-14 7:22am    
For Q2 to understand you have to learn a lot - including history of operating systems...In short OSes solving concurrent IO access by blocking, so all IO is blocking, in which case an IO intensive environment suffers from low performance. By designing a non-blocking IO model, such an environment can gain much better performance - that what happening in node.js...
Muhamad Faizan Khan 23-Oct-14 13:43pm    
i am using win8 it is also non blocking. i can copy more than one file at same time
Kornfeld Eliyahu Peter 23-Oct-14 13:48pm    
Oh, may dear...
As I said - you have to learn...
Blocking operation means that it blocks its caller, not the whole OS (OS runs multithreaded...)!
In a non-blocking IO environment even the caller have not have to wait...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900