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

GC settings for single threaded application

Single thread eliminates a lot of complications involved in multithreaded application. I was wondering if there are garbage collector configurations which can take advantage of single threaded application? Right now I am using a UseConcMarkSweepGC,…
1
vote
1 answer

How do I implement CloudPort side logic? JScript or VBScript produce an ActiveX control fault (even when left dummy, with empty-body functions)

The team I am working with has bought a CloudPort license (from CrossCheck Networks) and we are currently facing the problem of not being able to implement any sort of logic in the service Mocks (to control response selection). It would be something…
1
vote
1 answer

If Javascript is not multithreaded, is there any reason to implement asynchronous Ajax Queuing?

I am having issues with my php server (my computer is the only connection). I initially thought part of the reason was because of too many ajax requests (I have a script that executes an ajax request per keystroke) so I implemented a design to…
Klik
  • 1,757
  • 1
  • 21
  • 38
1
vote
1 answer

How to properly stop single threaded windows service (onStop)?

I have got a windows service written in VS 2010 / .NET 4.0. The service is following the scheme of the code snippet below: Using a timer, it executes some desired behaviour every couple of minutes. The requirement for the "desired behaviour" that's…
ManOnAMission
  • 1,023
  • 1
  • 12
  • 31
1
vote
2 answers

Freeing Resources in C#

I have a program running on [STAThread] in C#. The program periodically creates instances of a class X and adds them to a list. After a period of time, the tasks that these instances of X are required to perform are completed and the instance of…
Chris W
  • 145
  • 1
  • 2
  • 12
1
vote
1 answer

Browser stops responding to events during function execution, breaking "draggables"

I have a slider a little like this: ________ ------------| |--------------------------------------- : <-- | slider | --> : : : : ------------|________|--------------------------------------- I'm…
davidchambers
  • 23,918
  • 16
  • 76
  • 105
1
vote
1 answer

Is netty's udp running in single-threaded mode?

Is netty's udp running in single-threaded mode? I have configured the NioDatagramChannelFactory like below: new NioDatagramChannelFactory(Executors.newFixedThreadPool(4), 4)); But, when I running the code as a server, and lunch more than 20 clients…
Bob Cao
  • 47
  • 6
0
votes
0 answers

How do I do single-threaded dll/com messaging in Scala? (Actors)

I'm trying to setup Canon's EDSDK (for controlling Eos cameras), and it event handlers need to be handled by callbacks via the User32 Get/DispatchMessages api (in Windows at least). The event dispatching needs to: loop to continually dispatch…
Stephen
  • 19,488
  • 10
  • 62
  • 83
0
votes
1 answer

Get User info in WCF-service with [STAOperationBehavior] attribute

I have a silverlight-enabled WCF-service, of which one method absolutely requires the [STAOperationBehavior] attribute. I need to access user details (Forms Authentication) for the user, but Membership.GetUser() fails while the…
user495625
  • 301
  • 2
  • 11
0
votes
0 answers

Is it necessary to create a Java singleThreadPool when the method is already handled in an async way?

I have a memory-intensive exporting function that needs to retrieve over 1M data from the MongoDB and write it to an Excel file. This export method is already triggered asynchronously by using AWS SNS/SQS. However, it always encounters an OOM issue…
Coding_Rabbit
  • 1,287
  • 3
  • 22
  • 44
0
votes
0 answers

How to isolate a function for printing(using esc_pos_printer) in flutter?

So I wanted to make a background thread for my function for printing since the printer was not cutting off the paper after one billing and I had to click on the button again and again to get all the bill out. Below is my code for printing…
0
votes
0 answers

Connection Pool Size for Fixed Thread Program

I have a fixed thread java program. It is implemented with Spring Integration and ActiveMQ. Fixed thread here means that program has multiple threads but the count of them in runtime don't change. Now I need to set connection pool size for it, So I…
mjafari
  • 694
  • 2
  • 12
  • 22
0
votes
0 answers

long running ADO.NET process throws error recommending `CoWaitForMultipleHandles` pumping wait primitives

I am trying to encrypt a text field in an existing database using ADO.NET Command object that feeds parameters to a stored proc server-side. Code below. NOTE: a command has already fetched the PK and the particular column that needs to be encrypted…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
1 answer

Can a nodejs process use more than 100% CPU?

I have a node process that runs tasks. When I run an intensive task, in top it can show more than 100% CPU usage (around 110%). From some research that I was doing, I figured that nodejs was single-threaded meaning it would only be running on one…
pythonNovice
  • 1,130
  • 1
  • 14
  • 36
0
votes
1 answer

Why cant the system find the file that is specified?

in the assignment, the code is suppose to print on a single word from each file that repeats the most. I used a path to get to the list of files used for this assignment and i put them into an array. i cannot seems to find the problem as the array…