The event-loop tag has no wiki summary.
1
vote
1answer
42 views
node.js and setTimeout and setInterval - understanding event loop
I have written the program below in efforts to understand the event-loop and functions like setTimeout and setInterval.
The output of the program is different from What I expected:
The output is:
...
0
votes
0answers
7 views
JSContext what are they used for?
In the jsapi documentation, it is written that only one JSContext can be used per thread at a time. That objects do not belong to contexts. In a browser, the context could be seen as the window ...
0
votes
1answer
34 views
How To Understand Node.js Event Loops
Actually I'm learning node.js right now. Although I've learned many things about node.js like install modules and use them but I've not understood the actual core functionality (event loop and ...
0
votes
1answer
52 views
Single thread concept of JavaScript running in browser
The following figure is taken from Chapter 3 of the book Secrets of the JavaScript Ninja by Jon Resig. Here the author is explaining the browser event loop.
The book has to say this :
It’s ...
0
votes
2answers
37 views
How to push message/event into a message queue from somewhere with no direct access?
I have a forever-run event loop in a multithreaded program, a lot of functions and methods will push messages to this event loop. A simplified version:
class EventLoop {
public:
void run();
...
0
votes
0answers
16 views
Requests mechanism of Node.JS and IIS (event-loop and threading)
I'm trying to figure out what is the advantage of Node.JS event-loop mechanism (publish and subscribe to C++ ThreadPool) over the way IIS is handling requests.
I've read here:
...
3
votes
1answer
56 views
How to find out whether there are still events registered in the event loop (bonus: how many)
I am trying to write a Node.js program to execute and monitor javascript programs. I am looking for a way to find out whether the monitored program is still "running" i.e. doing anything useful.
In ...
0
votes
0answers
32 views
compile libev (dev) under CentOS
I was wondering if there were instructions somewhere on how to compile libev-dev on Linux (CentOS) 64 bit. I was not able to locate the dev package associated with libev nor any tutorials on its ...
2
votes
4answers
260 views
Run NodeJS event loop / wait for child process to finish
I first tried a general description of the problem, then some more detail why the usual approaches don't work. If you would like to read these abstracted explanations go on. In the end I explain the ...
0
votes
0answers
34 views
why yield in event loop?
anI used a C++ framework, where yield at the end of every loop cycle was mandatory. Now that I'm starting with C# and C++/CLI, I came across the yield function as well. I'm creating an event loop and ...
1
vote
1answer
125 views
Integrate Scrapy/Twisted event loop in PyQt4 Main loop
I am developing a PyQt4 tool which is using scrapy for crawling a website. I start a new process[multiprocessing] to run the Scrapy spider from ui. Everything works fine ~ ui is blocking and Scrapy is ...
3
votes
2answers
310 views
node.js Event Loop Diagnostics
Is it possible to peek at the event loop for diagnostics?
I would like to know how many events are currently waiting for execution (excluding setTimeout/interval).
Update: I'd like to do this from ...
0
votes
1answer
63 views
Access .net form main loop, or an event which is triggered every frame
I made an app with an API that allowed me to create my own event loop. I’m trying to get that same effect with the .NET forms to convert this application. It basically looked like this:
int main()
{
...
-1
votes
1answer
144 views
Java event loop, sleep “gently”
I'm doing a sort of event loop to process multiple non-blocking sockets in Java.
The problem is that when I leave the loop untouched, it uses a whole core. (For instance, I have a quad core and ...
0
votes
2answers
55 views
Trouble with keeping Node.js asynchronous
So, I ran into a situation today in which I needed to place an asynchronous database call into a custom function of mine. For example:
function customfunction(){
//asynchronous DB call
}
Which ...