threading tag

29 questions


1 answers
73 views
0
How do I spin threads on Android?

As a practice, I'm making an application that prints strings at intervals defined on the screen. To turn the thread handler = new Handler();Runnable r = new Runnable() { public void run() { tv.append...

1 years ago

1 answers
91 views
0
Which do you like better, "implementations Runable" or "extends Thread"?

I was looking at how to create threads in Java, and there were two ways: Runnable and Thread! public class ThreadA implements Runnable { public void run() { //Code } } //Started with a new Thread(t...

1 years ago

1 answers
104 views
0
Python multi-threaded question

I want each thread to run independently.One thread and two threads work.When 1th thread ends, I want to make 1th thread work again even if 2th thread is still working.In the repeat statement T1=Thread...

1 years ago

1 answers
146 views
0
Why is the wait() method always in the synchronized block?

Object.Everyone knows that the method must be in the synchronized block to generate the wait()method. Otherwise, IllegalMonitorStateException will occur. Why are these restrictions? I know that the wa...


1 answers
96 views
0
Is there a way to kill Thread in Python?

Is there a way to kill the currently working thread without using flags or semaphores?


1 answers
90 views
0
How to Pause or Sleep on Android

I'd like to give you a short delay between the two lines. to explain When the user clicks the button, I want to change the background of the button and show it to the original background in a second.t...


1 answers
91 views
0
Which is better, multi-threading, multiprocessing, or asyncio, for Python parallel http request/response?

Python is programming to execute http requests in parallel.I am planning to request restapi and collect the requested values and upload them to the cloudmultiprocessing,Multi-threading,Asyncio Asynchr...


1 answers
70 views
0
There is data missing when crawling by combining multiprocessing and multi-threading. How can we solve this?

Crawling using multiprocessing, treading, beautiful soup, and requests results in a list index out of range error or none type has not attribute text error.import requestsfrom bs4 import BeautifulSoup...


1 answers
68 views
0
Using Thread, ValueError: signal only works in main thread error

I would like to do something else while calling YouTube live chat using Thread and pythchat.def chat_get(): global ytloc ytloc=https://www.youtube.com/watch?v=GoXPbGQl-uQ print(ytloc) chat = pytchat.c...

2 years ago
« - 3 -

© 2024 OneMinuteCode. All rights reserved.