Questions tagged [single-threaded]

Single threaded as opposed to multithreading defines a code section, object or application that can run only using and allowing a single thread.

Single threaded as opposed to multithreading defines a code section, object or application that can run only using and allowing a single thread.

References

209 questions
0
votes
1 answer

Corda FlowLogic Behaviour in a scenario - What is the relevance of threads here?

I was trying to understand the actual flow of flow-logic and sessions. Consider a scenario in which there are 3 party nodes  A, B and C. At the very onset, A initiates a transaction with B, but B was down at that time. So as far as I understand, it…
0
votes
1 answer

Is JavaScript single threaded?

As it is obvious that nodeJs is single-threaded. But JavaScript as a language is also single-threaded?
iUbaid
  • 313
  • 2
  • 16
0
votes
1 answer

Is there a way to run Redis server on multiple nodes or multiple cores of a CPU?

I am currently working on running a deep learning model using Redis server, and for its optimisation, I was wondering if there is a way to run Redis server on multiple nodes, since redis is single threaded.
0
votes
1 answer

Can I configure a Dataflow job to be single threaded?

I was trying to configure and deploy a Cloud Dataflow job that is truly single threaded to avoid concurrency issues while creating/updating entities in the datastore. I was under the assumption that using an n1-standard-1 machine ensures that the…
0
votes
2 answers

What is the definition of "cold spots" vs. "hot spots" in program runtime analysis?

In a blogpost on https://discourse.ubuntu.com the performance weakness of Gnome-Shell is explained as being caused – not by obviously detectable "hot spots", but being caused – by "cold spots": "The thing is in the case of Gnome-Shell its biggest…
Pokulo
  • 123
  • 1
  • 11
0
votes
2 answers

How do I add a list of programs currently running on java socket server?

I have set up a Java socket server. I want the client to be able to input "Running Processes" which will cause the server to print all of the programs running on the server. The server code looks like this: // Java implementation of Server…
0
votes
1 answer

Fetching large amount of data with React native

was working on a project that for some of the users, we need to fetch a large amount of data. It seems that it's fine on the simulator, but it can be pretty slow when running one a real iOS/iPhone device. Since react-native/js is single threaded,…
changey
  • 18,606
  • 9
  • 28
  • 34
0
votes
2 answers

Why is Bootstrap Spinner Unusable in Compute Intensive Context

I am aware Javascript is single-threaded. However I do not understand why the following code does not show/hide a spinner before/after a compute-intensive task. Code outline: showSpinner(); computeIntensiveTask(); hideSpinner(); The code (I am…
dugla
  • 12,774
  • 26
  • 88
  • 136
0
votes
0 answers

is it possible to get faster single-threaded compute out of aws aurora postgresql?

I'm looking for a way to get better single-threaded performance for postgresql, preferably with aurora postgresql my application connects to a postgresql database. i really need to improve performance. all our tests tend to show that the bottleneck…
0
votes
2 answers

Javascript singlethread programing implementation

I know javascrip is a single thread application. I think to implement asynchronous programing it execute different part of a program synchronously. In the case of promises it does not stop the execution to resolve the promises. It just execute the…
PranavPinarayi
  • 3,037
  • 5
  • 21
  • 32
0
votes
0 answers

Datareceived handler vs TimerTick Event(Threaded and Non-Threaded Event)

I just want to know why TimerTick event handler is handled by the UI Thread and the DataReceived Event is handled by a worker thread. I thought they both are an event and handled by the UI thread. I tried Thread.Sleep(5000) when Data received event…
Burak
  • 1
  • 1
0
votes
1 answer

libuv - Limiting callback rate of idle event without blocking thread without multithreading

I'm using libsourcey which uses libuv as its underlying I/O networking layer. Everything is setup and seems to run (haven't testen anything yet at all since I'm only prototyping and experimenting). However, I require that next to the application…
Giuseppe P.
  • 48
  • 2
  • 6
0
votes
1 answer

Would it be really an advantage to achieve multi-threading using web workers in NodeJS?

I think the question is pretty explicit. JavaScript is single threaded and NodeJS still achieves incredible performances. We could think obvious that multi-threading would take NodeJS performances further, but it might be wrong in some cases. For…
glemiere
  • 4,790
  • 7
  • 36
  • 60
0
votes
1 answer

Requests handling inside Event Pool using NodeJS

I have read the difference between Multi thread mechanism and NodeJS Single thread mechanism here. I know less about thread concept. My question The above article says that all the Non Blocking I/O is handled using single thread in Event loop. I…
0
votes
1 answer

Remove object by itself in ArrayList

I am working with single thread game, in Main class i have ArrayList to contain Bullet objects for attacking zombies. Each of frame of game i do loop like: ArrayList bulletList; for (Bullet iBullet : bulletList) { iBullet.move(); …