Short requirement: have ability to create corotine context, which will executed in the single thread only (e.g. without parallelism). Additional requirement: i
I try to change a JavaFX GUI node in a thread, but I see the following error: Exception in thread "Thread-8" java.lang.IllegalStateException: Not on FX ap
I have a task - write multithreading matrix multiplication. Each vector product must be calculated in new thread.(If we have matrices n by m and m by k we must
Here I'm calling web services in nested Fragments which has TabLayout and ViewPager using AsyncTask. I've tried AsyncTasks by calling them all in onResume metho
For example I have a non-synchronized method like this: public void nonSynchronized(){ boolean flag = false; if(/*some condition*/){ flag
class Clstest{ public static String testStaticMethod(String inFileStr) { // section 0 // section 1 // do
Good afternoon, I have a question that I cannot solve. I want to do a SQL injection in Hack The Box (Legal Platform). The case is that I am trying to execute a
I am trying to create few flows in java, my program must to create 3 threads and 1 main thread, and than stop. I created class with implemented Runnable class N
Lines from Anthony William book: std::launch::deferred indicates that the function call is to be deferred until either wait() or get() is called on the fu
My understanding from multi-threading has been that one process (cpu core) can have multiple threads running with it. So far in python when I want to check whi
I recently started migrating my project from Swift3/Xcode8 to Swift4/Xcode9. My app crashes at runtime because the main thread sanitizer allows access to UIAppl
i am currently trying to make a programm which will print the sentece "What a wonderful world" using three threads. The first thread should print "What A" , the
I need to run multiple async methods from the main thread, which should be able to finish even after the main thread has returned a response. I've added a metho
I'm trying to make threaded flight software for a project in Python 3.4, in which I need threads to restart themselves in case an I/O error occurs during a sens
I have been developing a game, using a Samsung Galaxy S6 running Marshmallow as one of my development devices. After the phone upgraded itself to Nougat, a met
I have been developing a game, using a Samsung Galaxy S6 running Marshmallow as one of my development devices. After the phone upgraded itself to Nougat, a met
I have a Windows form with three buttons. One button adds entries to a BlockingCollection. One starts processing the list and one stops processing the list. I
To simplify the situation I'm having: I'm trying to terminate a thread while it is still running in Python 2.7, and I'm not sure how to do it.
I have an application that is hitting an API. As such, it does a query for all ID's in the object, and then has to query each item one at a time per ID. I'm d
If in a class I have a ConcurrentHashMap instance that will be modified and read by multiple threads I might define like this: public class My Class { pri