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
2 answers

Single PHP thread to respond to two asynchronous ajax requests

I am implementing a synchronization process between two devices. Web and mobile. I have planned an algorithm but not sure about the possibility of its implementation. My algorithm is, Mobile will generate a ajax request to PHP script to sync its…
Hassan Dad Khan
  • 645
  • 1
  • 6
  • 23
0
votes
2 answers

javascript asynchronous call and single threaded model

During the execution phase in javascript timeline, events occur which invokes registered event handlers asynchronously. As per my knowledge in asynchronous calls the program execution doesn't wait for the completion of a task instead it moves onto…
ronak_11
  • 245
  • 1
  • 3
  • 12
0
votes
1 answer

Event loop based applications on single CPU machines

As I understand, event loop based applications have a thread that is always running. I am curious to understand the behaviour these will have on a single CPU machine. Edit : This is not specifically targeted at node.js applications. I have seen…
Manish
  • 909
  • 1
  • 11
  • 23
0
votes
2 answers

Single thread with a delay to start

What im trying to do is : Pressing one button change simple value. If value remains unchanged for 3 sec, i wanna execute my method. So i need a single thread which would start(and kill all others) on every button click. I know Executor executor =…
Lauris01
  • 283
  • 1
  • 4
  • 19
0
votes
1 answer

Setting thread to STA when in ASP.NET

I am trying to get a copy to clipboard in my .ascx file. Since this is ASP.NET, there is no main function to put [STAThread] on. I am getting an error stating: "Current thread must be set to single thread apartment (STA) mode before OLE calls can…
emmajean
  • 25
  • 1
  • 1
  • 7
0
votes
2 answers

Is it possible to stop single threaded execution of code from UI?

In my solution I got a user interface where some word automation is started by a buttonclick (lets call that button wordStart). I want to break this word automation with another buttonclick (lets call that button wordBreak). However when I click the…
n.Stenvang
  • 487
  • 2
  • 6
  • 21
0
votes
1 answer

Can a server deliver multiple web pages at the same time to a single machine?

Is it possible for web servers, when dealing with a single machine, to process and respond to multiple requests to the same domain asynchronously? The requests are done with Javascript. How do servers even work in such a case? Does it process and…
0
votes
1 answer

Can we consider an requestAnimFrame a 'yield' on the application loop to allow the event loop to process?

I'm using the requestAnimFrame method in JavaScript to make my canvas update within my program's main loop: window.requestAnimFrame = (function(callback) { return window.requestAnimationFrame || window.webkitRequestAnimationFrame ||…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
2 answers

Improve java single thread performance - on the software side

the current available cpus can´t afford the single thread performance I need. So, I would like to know if there a ways to improve the single thread performance via. the software ? I have a java application that would need 160% cpu power at the…
user2693017
  • 1,750
  • 6
  • 24
  • 50
0
votes
2 answers

RabbitMQ in scalable nodejs Apps, How make a build well scalable app?

What's your opinion about the use of RabbitMQ as messages broker,if I think to do scalable an aplicacion using socket.io into my nodejs project, in comparison with redis wich will be i use?? In which othe scenarios could use Rabbit or there are…
Dick Van Ocampo
  • 937
  • 2
  • 8
  • 9
0
votes
1 answer

Can you configure a JBoss web app to be single threaded?

Can you configure a JBoss web application to be single threaded? Ie: only accept one incoming web request (ie: socket connection) at a time? Or is there a way to say max 3 concurrent connections? I know it's an unusual configuration but we were…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
0
votes
2 answers

How to run multi-threaded testng next to single threaded

I am running a series of tests with testng and am running them at the parallel="classes" level. The problem is I want 3-4 classes to always be ran together on the same thread (single threaded). All other classes can be ran on whatever thread, I do…
Nick Humrich
  • 14,905
  • 8
  • 62
  • 85
0
votes
1 answer

c# Two Programs accessing a single-threaded encoder

I have written a program to enable quick configuration of an encoder as well as data acquisition to a text file. I need to be able to access the encoder through industrial software at the same time, reading the text file is not possible. I have no…
jester
  • 238
  • 5
  • 13
0
votes
0 answers

How to get the changes reflected when I call a function using Threading Asp.net

I am Threading to Call a function and assign values to a Textbox in Asp.net. When I debug it is showing value, but in the Form it is not getting reflected. Below is my code. Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As…
Jegan Nagarajan
  • 43
  • 1
  • 1
  • 5
0
votes
0 answers

I want to run a script multiple times sequentially in python

I have a python script which basically calls a few functions, but takes quite a while to complete. I want to be able to run this script many times on a loop. I need the script to wait until it's previous iteration is done. so for example; for i in…
1 2 3
13
14