libuv Flashcards

(5 cards)

1
Q

Library “libuv”

A

Is a C library that Node.js uses to implement:

1) asynchronous I/O,
2) event loop,
3) file system, networking, sockets, timers, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many libuv working threads are there in Node.js?

A

Default 4
Can be increased to 1024
Previously it was up to 128

These are all libuv limitations
Each thread runs on 1 processor core

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to increase the number of libuv working threads ?

A

process.env.UV_THREADPOOL_SIZE =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

С++ Bindings

A

C++ bindings in Node.js are a bridge between JavaScript and C++ that allow you to call native code directly from Node.js, usually to improve performance or access system capabilities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or False, libuv automatically places blocking operations in a separate thread when working with event loop

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly