single-threaded Questions

2

Solved

I am new to nodejs, currently learning it. I know nodejs is single-threaded, however I am wondering: if I use non-blocking method, for example, there are 20000 concurrent requests, and there is one...
Bunyabunya asked 17/10, 2014 at 18:21

3

Solved

I am trying to understanding basics of Redis. One that that keep coming everywhere is, Redis is single threaded that makes things atomic.But I am unable to imagine how this is working internally.I ...
Heeltap asked 28/7, 2017 at 3:11

4

Solved

I need to get information about applied CSS styles in HTML page. I used AxWebBrowser and iterate IHTMLDOMNode. I'm able to get all the data I need and move the code into my application. The problem...
Blasius asked 13/9, 2009 at 18:21

5

Can a single threaded application have a deadlock? If so, please provide an example.
Citriculture asked 29/1, 2010 at 15:32

3

Solved

let a = true; setTimeout(() => {a = false}, 1000) while(a){console.log(a)}
Dagall asked 2/3, 2021 at 13:20

1

Solved

I always believed that JS was a single threaded language which makes it inefficient for CPU intensive tasks. I recently came across worker threads and how it solves this inefficiency problem by cre...

4

Solved

I have a NodeJS/Express web app, where TypeOrm is used for many database functions. To avoid callback hell I usually use async/await to call and wait for database actions from my endpoint methods. ...

2

Solved

I'm currently trying to understand some basic implementation things of Redis. I know that redis is single-threaded and I have already stumbled upon the following Question: Redis is single-threaded,...
Anti asked 30/12, 2017 at 16:17

1

Solved

I just learned the basics of parallel-processing in Java. I read this question: Multiple threads and performance on a single CPU and wondered if there is not another reason why multiple threads mig...
Oriya asked 14/5, 2017 at 9:47

1

Solved

Let's say there is a hospital that runs a simple database. In this database is a table called "patients" with 1,000,000 records--each record being a patient whose status is either "active" or "disc...
Judy asked 21/4, 2017 at 16:23

3

Solved

I can find a lot of questions about how to use connection pooling and why it's a good idea, but I'm wondering if I actually need it. I'm creating a server application and although it is mult...
Adabelle asked 22/12, 2016 at 14:32

1

Solved

I know node.js is a single threaded, asynchronous, non blocking i/o. I've read a lot about that. e.g PHP uses one thread per request but node uses only one thread for all, like that. Suppose there...
Pacifa asked 11/4, 2016 at 7:29

4

Solved

JavaScript is a single threaded language and therefore it executes one command at a time. Asynchronous programming is being implemented via Web APIs (DOM for event handling, XMLHttpRequest for AJAX...
Corespondent asked 12/2, 2016 at 12:16

4

Solved

Is there a way to force the browser to render DOM changes during the execution of JavaScript? In the following example, only the '1000' will be displayed and I do understand that this is caused by ...
Jhelum asked 12/11, 2015 at 22:48

2

I've read that a tick is a unit of execution where the nodejs event loop decides to run everything in its queue, but other than explicitly saying process.nextTick() what events cause the node.js ev...
Lees asked 24/10, 2015 at 20:2

1

Solved

GENERAL GOAL I’d like to know how the following pieces of a javascript environment interconnect as a system. Javascript Engine Event Loop Event Queue We can limit this to a browser environmen...

3

Solved

Can someone please explain if there's really any advantage to writing a multi-threaded piece of code that runs on a single processor with a single core? E.g., a method that processes document pages...
Raviv asked 9/12, 2013 at 17:19

2

Solved

I actually develop a Windows service in VS 2012 / .NET 4.5. The service is following the scheme of the code snippet below: Using a timer Executes some desired operation every couple of minutes....
Sweetie asked 20/3, 2014 at 13:22

2

From my understanding, each vert.x instance will be assigned an event loop. Event loop handles all the request an other task for that particular instance. Event loop is a thread, I think. When ther...
Homocercal asked 29/5, 2014 at 10:28

2

Solved

I was just wondering what could happen if, while an ajax call is being executed, an alert is prompted to the user, in the browser window. Let's say, for example, that I have an ajax call $.ajax({...
Millpond asked 22/5, 2014 at 8:19

6

Solved

I wondered how many times can a JavaScript while statement (in Chrome's console) can increment a variable in a millisecond, so I quickly wrote this snippet directly into console: var run = true, i...
Meraree asked 9/2, 2014 at 8:4

1

Solved

I opened my activity monitory in OSX to to see how Node was getting along and to my surprise it's using 8 threads. How can in be!!?
Judo asked 7/2, 2014 at 18:25

3

Solved

I've been reading John Resig's "Secrets of a JavaScript Ninja" and it explains that JavaScript is single-threaded. However, I tried testing this and I'm not sure what to take away from here: // ex...
Instant asked 29/1, 2014 at 21:57

2

Even after reading http://krondo.com/?p=1209 or Does an asynchronous call always create/call a new thread? I am still confused about how to provide asynchronous calls on an inherently single-thread...

1

Solved

I'm new to nodeJS and was wondering about the single-instance model of Node. In a simple nodeJs application, when some blocking operation is asynchronously handled with callbacks, does the main th...
Ellsworthellwood asked 6/8, 2013 at 13:0

© 2022 - 2024 — McMap. All rights reserved.