libuv Questions
5
I'm trying to find out how to fix these memory leaks I'm getting while running this program with Valgrind. The leaks occur with the two allocations in nShell_client_main. But I'm not
sure how to pr...
4
Solved
I am trying to understand the threadpool in nodeJS.
on running the code with creating process.env.UV_THREADPOOL_SIZE = 5;
process.env.UV_THREADPOOL_SIZE = 5;
const https = require('https')...
Egypt asked 7/7, 2018 at 16:14
6
Solved
What does this error actually mean? What is a "cross-device link"?
It is mentioned on this libuv page but it doesn't give any details beyond "cross-device link not permitted".
1
If a run my current nodejs project, it crashes as soon as FireStore is accessed (the problem started when I moved to a new Windows laptop):
Assertion failed: new_time >= loop->time, file c:\...
Woosley asked 9/6, 2020 at 15:24
3
Solved
i am using libuv for my extensively-network-interacting application and i am concerned about which techniques of re-using allocated memory would be at the same time efficent and safe with libuv cal...
Abduce asked 14/2, 2015 at 1:44
3
Solved
So, maybe this question is too noob and novice to be asked but I still have no clue why LIBUV got a place in Node JS Architecture? So here is my understanding of NodeJs architecture.
Node Js is bu...
Diao asked 19/5, 2019 at 7:24
4
Solved
I am learning through the architecture of Node.js. I have following questions.
Is event loop a part of libuv or v8?
Is event queue a part of event loop? are event queue generated by libuv or v8 e...
Brelje asked 13/4, 2018 at 6:58
2
It's been quite a while since I wrote a program in C, and even so I always found the actual compiling and linking quite confusing.
Since I've been playing / working with node.js lately, I have bec...
4
Solved
So I have just discovered that libuv is a fairly small library as far as C libraries go (compare to FFmpeg). I have spent the past 6 hours reading through the source code to get a feel for the even...
Clearheaded asked 11/4, 2020 at 20:17
1
Solved
There is the poll stage of the Node js's event loop. Its aim is to blockingly wait for I/O notifications and then execute needed callbacks. A timeout time of the waiting is calculated before enteri...
Ochs asked 24/1, 2021 at 11:9
2
Solved
How does libuv and the operating system actually schedule timers like setTimeout and setInterval in Node.js? I see that no CPU is used by the node process until a timer fires. Does this mean the OS...
4
Solved
I'd be interested in aspects like:
scope/features
performance
maturity
Kilocalorie asked 10/7, 2012 at 23:22
3
Solved
In a Windows nodejs addon, I've created a window for the purpose of receiving messages.
Handle<Value> MakeMessageWindow(const Arguments &args) { // exposed to JS
...
CreateWindow(L"Cla...
2
I am learning Node Js, I understand the heart of node js is the reactor pattern which is based on the event loop.
When any event occurs it goes to the event queue and then gets picked up by the st...
Avlona asked 6/6, 2018 at 10:50
3
I am very new to node.js and I can not seem to find a definition anywhere as to what node.js bindings are. I have seen this term used in slides and nodejs talks but it was never clearly explained. ...
Laryngology asked 4/12, 2013 at 17:51
2
I am learning Node.js
I have found this note on libuv official documentation-
“ libuv uses a thread pool to make asynchronous file I/O operations possible, but network I/O is always performed in...
3
Solved
As far as I know, all IO requests and other asynchronous tasks are done by libuv in nodejs.
I want to know if libuv is using threading. If it is, is it using all available core or not?
Orgulous asked 15/10, 2017 at 9:32
2
Solved
In libuv file heap-inl.h, I see the following macro
#if defined(__GNUC__)
# define HEAP_EXPORT(declaration) __attribute__((unused)) static declaration
...
HEAP_EXPORT(void heap_init(struct heap* h...
1
Solved
This link purely specifies that libuv provides a thread pool which can be used to run user code and get notified in the loop thread. Its default size is 4, but it can be changed at startup time by ...
Dyl asked 27/5, 2018 at 13:36
1
Solved
As of ASP.NET Core 2.1.0-preview2 Microsoft has changed libuv to sockets.
Why haven't they used Sockets in the first place?
Is there a same implication of sockets in every operating system?
Is ...
Cockeyed asked 13/4, 2018 at 5:24
2
Solved
sudo apt-get install libuv
$ sudo apt-get install libuv
[sudo] username ...
It fails to find package and install.
Is libuv included in some other packages?
Tullusus asked 11/2, 2017 at 12:2
1
Is there a way to make a call in Node.js to determine the number of timers in the event loop queue? I have a library with a number of timeouts and instead of keeping track of them myself using some...
Oneway asked 28/12, 2016 at 1:10
2
The libuv contains next code in core.c:uv_run()
/* The if statement lets the compiler compile it to a conditional store.
* Avoids dirtying a cache line.
*/
if (loop->stop_flag != 0)
lo...
Lacustrine asked 9/12, 2016 at 19:10
1
Solved
This is a question about JavaScript internals.
Lets say I have 10 async tasks that all take x number of seconds to run. Whilst waiting for a response the script is idle.
In the background the Jav...
Monies asked 23/8, 2016 at 19:24
3
Solved
I am trying to learn the libuv api and wrote the following test:
#include <stdio.h>
#include <stdlib.h>
#include <uv.h>
void timer_cb(uv_timer_t* timer) {
int* i = timer->da...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.