Skip to main content

All Questions

2 votes
2 answers
348 views

BASH: Is it possible to multi-thread a function within a single BASH script? If so, how?

In my use case, I've got a single-threaded backup script where I know from other experience the hardware can handle around 30X the I/O bandwidth, and single-threaded it's taking so long to complete it'...
Richard T's user avatar
  • 4,649
0 votes
0 answers
104 views

Tkinter: How can I constantly run another thread/process alongside the event loop?

I'm trying to have a thread/process that runs alongside my Tkinter event loop and constantly checks to see if a certain amount of time has elapsed since the user was last active so that a screensaver ...
FeGaxo's user avatar
  • 1
1 vote
1 answer
58 views

How to load a background image without hiding components on top in Swing

I have a JPanel that holds a few JLabel that display some informations. And i use another JLabel to hold a background image that I'm going to get from a URL. I have used GirdBagLayout to set this up ...
Rachid Rajjys's user avatar
0 votes
1 answer
124 views

How to wait for CLLocationManager w/o stalling app nor accessing UIView from background thread?

I'm trying to figure out the right approach to wait for location data to become available, before adding/drawing subview/sublayers without blocking the main thread. E.g. I want to draw views based on ...
clearlight's user avatar
  • 12.5k
0 votes
1 answer
115 views

When app goes background the thread pause

I need your help. I have a chronometer app very simply that show the time running. I created a thread that count the time and update the UI. When the app is in first plane, everything is fine. When I ...
Rodrigo Rosales's user avatar
1 vote
0 answers
223 views

Background a listening socket server python3

How can i run a socket server to listen on a specific port while another thread sends HTTP requests at the same time? here is the socket server code: class ConnectionHandlers: def __init__(self, ...
abuqasem's user avatar
0 votes
1 answer
253 views

Execute something which takes 5 seconds (like email send) but return with response immediately?

Context In an ASP.NET Core application I would like to execute an operation which takes say 5 seconds (like sending email). I do know async/await and its purpose in ASP.NET Core, however I do not want ...
g.pickardou's user avatar
  • 34.7k
6 votes
1 answer
8k views

FastApi Background Task kill

Is there any way to end from a DELETE endpoint a FastApi BackgroundTask I added in a POST? For example: Taking this example from FastAPI tutorial: from fastapi import BackgroundTasks, FastAPI app = ...
Pepe's user avatar
  • 132
0 votes
1 answer
115 views

Running operation on background context in Android

In an Android project, written in Kotlin, I have a data structure I want to perform some operations on on a single thread, because neither is designed to be thread safe, and the order of operations ...
niklassaers's user avatar
  • 8,782
0 votes
1 answer
79 views

How to wait background task in Xamarin?

I am trying to get a file from the device with Xamarin's file picker, and do some thing with that file. But, since the operation I'm trying to do is heavy, file picker freezes and waits for the task ...
hasanaslan's user avatar
1 vote
0 answers
38 views

Singleton class or extending Application for ThreadPoolInstance in Android app

I'm developing an Android app, and I need a ThreadPool for background operation (insert/retrieve from database, calculating distances between latent points, etc) in repositories and in a foreground ...
Giovanni Corte's user avatar
0 votes
1 answer
44 views

Background application running using threads

I am programming an app which will send an SMS message when a set time runs out. When I change the orientation of the phone or temporary leave this activity, the timer still keeps counting, but the ...
Leming's user avatar
  • 29
0 votes
3 answers
73 views

How to execute a treatment in the background?

How can I optimize a java treatment (for loop, nested loop) and execute it in the background so I can continue with another treatment? @Transactional(propagation = Propagation.REQUIRES_NEW, ...
Ahmed's user avatar
  • 25
0 votes
1 answer
40 views

show progress with a lengthy background job that does not come back for a long time

Winform. I have a long job that is handled by a background worker. While the bg worker is running, I show a status bar with the message "please wait" with a an animated gif. However, I ...
user7221839's user avatar
0 votes
0 answers
373 views

Xamarin ForegroundService with Async Method inside

I have a ForegroudService in a Xamarin Projects and evrything goes well unless there is an asynchronous method in the service. I call the ForegroundService's start with buttonEvent private void Speak(...
Lorenzo Vettori's user avatar

15 30 50 per page
1
2 3 4 5
16