processing tag

54 questions


1 answers
98 views
0
Python multiprocessing question! (Correction)

After defining the class called Test, define the write and read functions in itAfter creating the object, I tried to run both functions at the same time using the multiprocessing module, and I tried c...

2 years ago

1 answers
75 views
0
Python function coding questions that always run in parallel.(multiprocessing)

Hello, I'm coding Python.Even if you search by yourself and code through trials and errors,I'm asking you a question because something doesn't work out.from time import sleepfrom multiprocessing impor...

2 years ago

1 answers
70 views
0
Multiprocessing vs. multi-threading with Python

Which is better, multiprocessing or multi-threading?I heard that you don't need to use GIL for multiprocessing, is there anything else?Please tell us the difference and pros and cons of the two


1 answers
110 views
0
A code question that executes multiple functions at the same time. (jupyter notebook)

Hello, I am using Python as a jupyter notebookI have difficulty using multiprocessing module,I have a question.Even if you turn the example code on several blogs,I don't know if there's something wron...


1 answers
95 views
0
Python multiprocessing

Is there a way to kill all the child processes at that moment and measure the time when you find the correct answer in this program?import multiprocessingimport timeimport sysstart_time = time.time()d...

2 years ago

1 answers
119 views
0
I don't understand the process of putting the array in the index position of the array in Numpy. (Example> 3d_array[2d_array])

During the image processing process using numpy, there is a part of the code that I don't understand, so I'm posting a question.import numpy as npimage = np.array([[[1,1,1],[1,1,1]],[[1,1,1],[1,1,1]]]...


1 answers
84 views
0
How do I eterate multiple iterables at the same time?

When there are two iterables, each element is paired foo = (1,2,3)bar = (4,5,6)for (f,b) in some_iterator(foo, bar): print f: , f ,; b: , bUse this code to make a result f: 1; b: 4f: 2; b: 5f: 3; b: 6...


1 answers
96 views
0
How to kill Python prettily by multiprocessing

I would like to utilize multi-core in a Windows environment other than Linux.If you accidentally interrupt, only the main process will be interrupted, and the rest will continue to spin like an infini...

2 years ago

1 answers
96 views
0
cAsk questions when recalling blanked parts with language text file tabs

#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct { char name[20]; int year;} } movie;int main(void){ movie hitMovie[20]; int i; F...

2 years ago

1 answers
116 views
0
Pool.map Just a quick question...

if __name__ == '__main__': pool = Pool(processes=8) pool.map(loop1, range(3,10003)) pool.close() pool.join()Is it right that the eight processes do the same thing over and over again?For example, is ...

« - 5 - »

© 2024 OneMinuteCode. All rights reserved.