Skip to main content

All Questions

Tagged with
1 vote
1 answer
67 views

Multiprocessing in bash [duplicate]

I wrote a script (wrapper) over one python project. here are the links: https://github.com/daniellerch/aletheia https://daniellerch.me/stego/aletheia/intro-en/#aletheia-commands The essence of the ...
Sasha's user avatar
  • 11
0 votes
0 answers
27 views

Python multithreading performance degrades over time when running external shell commands

I'm using Python to handle multithreading where I spawn 20 threads to perform analysis and calculations on an external CP via shell commands. This process involves creating files, processing results, ...
丸山泰明's user avatar
0 votes
0 answers
7 views

how to calculate Live threat of any process using shell commands?

how to calculate Live threat of any process using shell commands? i need help it is just like jconsole thread monitor. please help me out to get someone can to get live . peak and total thread monitor ...
vishal Kumar's user avatar
2 votes
1 answer
80 views

How do you translate fork() to Pthread in C++ (Linux)

Here is my whole code, I have an idea on what needs to be replaced by I'm not sure on how to go about it. The goal of the program is to read files within Linux using a simple shell, I have done this ...
Pez's user avatar
  • 21
1 vote
0 answers
45 views

Reimplementing system() locally to prevent issues with blocking SIGCHLD on other threads

I have had an issue with the system() call, since it was being used in a multithreaded context. My issue was that I would call system() to run a shell script in one thread, and simultaneously in a ...
Dan's user avatar
  • 21
0 votes
1 answer
284 views

why the command 'exec' can remove the blocking state of fifo file?

I'am studying how to use multi thread to process tasks.And i noticed that the fifo file can help that.here is the effect: #!/bin/bash my_cmd(){ echo "process $1" sleep 3 } ff="d:/myfifo/...
zadaji's user avatar
  • 211
2 votes
3 answers
5k views

Multi threading cURL request?

I want to generate list of numbers and make a http request and save the result using cURL and jq on ubuntu. I already wrote single thread using FOR loop and it's works but I want to add threading to ...
nerdg33k's user avatar
0 votes
1 answer
50 views

What is the best explicit and implicit way to use a class contains an infinite loop in its methods?

I'm trying to code a class which includes a method that loops infinetly until an explicit interruption request made like below: # module_2 import sys from time import sleep from pathlib import Path ...
Synertic's user avatar
0 votes
0 answers
215 views

How to determine the threading model of a COM object you didn't declare or CoCreate

Let's say you're creating an in-process shell extension, and at a certain point you obtain the IShellItemArray representing the current folder selection. Or more specifically, you have an IFolderView2 ...
user avatar
0 votes
1 answer
39 views

How to terminate a process that the script starts by command line?

I have a script that receives several arguments. The main thread becomes a server, and the arguments are command line strings that run clients. Once the server has received what it wants from the ...
user123's user avatar
0 votes
1 answer
77 views

How do I run scripts in the background and control the quantity?

I have some test programs, their names are bingo_64k.llc_pref bingo.llc_pref bingo_multitable_pc+addr_addr.llc_pref bingo_multitable_pc+addr_addr_pc+offs.llc_pref bingo_multitable_pc+addr_addr_pc+...
Yujie's user avatar
  • 425
5 votes
3 answers
2k views

How to do Parallel Input and Output Simultaneously in Python3?

I need to design a script that uses the top portion of the terminal as output where some lines are printed after each second in an infinite loop, and the bottom portion keeps taking user input and ...
Sohail Saha's user avatar
-1 votes
2 answers
370 views

Is there a C++ function to suspend of resume a child process?

Is there a way to suspend and resume a process using C++? Today, I created a mini shell that will stop some background processes to execute a new foreground process. Thanks,
Hung Trinh's user avatar
1 vote
0 answers
257 views

Python time.sleep(1) raises TypeError?

I get this strange behaviour (random TypeError exception is thrown) whenever I interrupt/kill a sleeping parent thread from a child thread in python 3 but the strange behaviour ONLY appears if the ...
A Kareem's user avatar
  • 587
1 vote
1 answer
580 views

python: subprocess returns nothing when running scripts which take longer time

Beginner here with subrpocess problem: The below line works fine when I run both the scripts with less data which takes around 10-20minutes, however with bigger data to be processed the subprocess ...
Macchu Chan's user avatar

15 30 50 per page
1
2 3 4 5
9