Skip to content

pshaddel/nodejs-readfile-system-calls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Read File System Calls

Compile and Run file_read.c

gcc ./file_read_uv.c -o file_read
file_read

Compile and Run file_read_uv.c, you have to first install libuv(use this link)

gcc ./file_read_uv.c -o file_read_uv -luv
file_read_uv

How to Trace

Use strace, it works only on Linux

# For Debian-based distributions like Ubuntu
sudo apt-get install strace

# For RPM-based distributions like CentOS
sudo yum install strace

Tracing

strace -c ./file_read
strace -c node ./read_file_callback.js

About

Comapring System Calls for Reading a File in Nodejs and C

Topics

Resources

Stars

Watchers

Forks