I have a JSON file that I am parsing through in an attempt to see if a domain is live. The code I have is the following: I have attempted to use m ...
I have a JSON file that I am parsing through in an attempt to see if a domain is live. The code I have is the following: I have attempted to use m ...
I have the following code: import time from fastapi import FastAPI, Request app = FastAPI() @app.get("/ping") async def ping(request: Reque ...
import time start = time.time() import pandas as pd from deep_translator import GoogleTranslator data = pd.read_excel(r"latestdata.xlsx") transla ...
I need to be able to run some code that is going to be blocking and some other code that will then, when blocked, start some other actions. The use-c ...
I am trying to implement a piano game. The rules are simple: a note is played and after 5 seconds the answer is shown. The problem is that I want the ...
I have a simple text file (command_script.txt) that I am executing as a bash script. The content of command_script.txt is something like this: I e ...
I have a image-processing service containing two methods, which I want to execute in parallel using the multiprocessing library in Python. The first- ...
I have systems that have a large number of cores as well as a cluster. For a particular task for which no serial implementation is available, I can on ...
I was recently learning multiprocessing using Python. What I learned is that we use multiprocessing module in Python to achieve parallelism, which mea ...
I've heard that Python multi-threading is a bit tricky, and I am not sure what is the best way to go about implementing what I need. Let's say I have ...
So what I want to do is run the same function multiple times simultaneously while getting a result as return and storing it in an array or list. It go ...
This is an exam question (practice exam, not the real one). It's about concurrent programming using a multi-core processor and the problems with using ...
I have programmed the following code in Python: when I use the ProcessPoolExecutor() my results are the following: I have also changed to Thread ...
I want to build a fully connected graph parallelly in python and also get a list of edge values like :( node1, node2 ) = edge_valuestored in a diction ...
I Want to schedule a Job to be done after every 5 seconds which takes around 3 seconds to execute. I have used and so far. But first one block's ...
I'm new to ray and I'm trying to parallelize the simulator that I have developed. Here an example of my simulator obviously its more complex. So fa ...
I’m looking to use parallelized code across two computers on different networks to execute a batch of tasks, but am not sure how to do so in Python. ...
I have a large list containing strings. I wish to create a dict from this list such that: list = [str1, str2, str3, ....] dict = {str1:len(str1), ...
I read a lot of posts about parallelization using the multiprocessing module but none of them quite answered my question. I have a very long generato ...
So I got 2 .py files and am trying to import the test function from the first to the secon one. But every time I try that I just get a "BrokenProcessP ...