Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 225 results for
multiprocessing
- Page 1
multiprocessing blues in Windows7
Programming
Software Development
12 Years Ago
by TrustyTony
This example program of using the
multiprocessing
is crashing my i7 4 core windows7 64 bit computer … utf-8 -*- from numpy import arange,sqrt, random, linalg from
multiprocessing
import Pool global counter counter = 0 def cb(r): global…counter http://pyinsci.blogspot.fi/2009/02/usage-pattern-for-
multiprocessing
.html
Multiprocessing causes BSOD
Programming
Software Development
12 Years Ago
by delta_frost
… anyone please point out what is wrong with it ? import
multiprocessing
def cracker(): print "Hello" return procs = [] for… i in range(8): p =
multiprocessing
.Process(target = cracker) procs.append(p) p.start() for p…
Re: Multiprocessing causes BSOD
Programming
Software Development
12 Years Ago
by TrustyTony
…code is not protected for importing, which
multiprocessing
module uses, this works: import
multiprocessing
def cracker(): print "Hello"… '__main__': procs = [] for i in range(8): p =
multiprocessing
.Process(target = cracker) procs.append(p) p.start() for p…
Re: multiprocessing blues in Windows7
Programming
Software Development
12 Years Ago
by TrustyTony
…: utf-8 -*- from numpy import arange,sqrt, random, linalg from
multiprocessing
import Pool global counter counter = 0 def cb(r): global…
Multiprocessing for an HPC
Programming
Software Development
10 Years Ago
by fatalaccidents
… sqlite DB and my first idea was to implement the
multiprocessing
Pool function. I'm not sure if this question would… this to run. Do I need to implement mpi4py and
multiprocessing
in some way? I'm severely confused. Sorry for not…
Running multiprocessing inside decorator
Programming
Software Development
13 Years Ago
by falek.marcin
…When I'm calling the method **run_in_parallels** using
multiprocessing
I 'm getting the error: `Can't pickle…which will end operation stops the others. from
multiprocessing
import Process,Event class ExtProcess(Process): def __init__… and the simpliest way is to use
multiprocessing
inside decorator. But unfortunatly I can't…
Re: Running multiprocessing inside decorator
Programming
Software Development
13 Years Ago
by falek.marcin
… in run_in_parallel process.start() File "C:\Interpreters\Python32\lib\
multiprocessing
\process.py", line 130, in start self._popen = …dump(process_obj, to_child, HIGHEST_PROTOCOL) File "C:\Interpreters\Python32\lib\
multiprocessing
\forking.py", line 190, in dump ForkingPickler(file, protocol…
Python multiprocessing: How to reload processes when a config is modified
Programming
Software Development
10 Years Ago
by 4m1nh4j1
I am using python
multiprocessing
lib and I would like to reload a list of …def dispatch_processs(self, conf): processs = [] event =
multiprocessing
.Event() for conf in self.get_config(): process =
multiprocessing
.Process(target=self.sched,args=( i for…
Re: Python multiprocessing: How to reload processes when a config is modified
Programming
Software Development
10 Years Ago
by woooee
… Doug Hellmann's site [Click Here](http://pymotw.com/2/
multiprocessing
/communication.html) This simple example shows that changes made to… of the process can be seen by all processes from
multiprocessing
import Process, Manager def test_f(test_d): """ frist…
Threading , Multiprocessing Simple program
Programming
Software Development
13 Years Ago
by Creatinas
Hello again, Can someone please help me learn some easy
multiprocessing
or threading :) I want to write a simple program that … some HTML from those sites. What is better to use
multiprocessing
of threading? What different ? How it works? I really want…
Re: Threading , Multiprocessing Simple program
Programming
Software Development
13 Years Ago
by Gribouillis
Perhaps you could start by reading Doug Hellmann's python module of the week on the threading and
multiprocessing
modules: [url]http://www.doughellmann.com/PyMOTW/threading/index.html[/url] and [url]http://www.doughellmann.com/PyMOTW/
multiprocessing
/basics.html[/url] .
Re: Python subprocess return code without waiting with multiprocessing
Programming
Software Development
10 Years Ago
by woooee
… use is_alive() to check the status of a process in
multiprocessing
. You could also use a manager.dict() set to True…. Also take a look at pool from
multiprocessing
[Click Here](http://pymotw.com/2/
multiprocessing
/communication.html#process-pools) as I am…
Re: Python subprocess return code without waiting with multiprocessing
Programming
Software Development
10 Years Ago
by Gribouillis
… me #!/usr/bin/env python # -*-coding: utf8-*- # ./main.py from
multiprocessing
import Process, Queue from subprocess import Popen, PIPE def runJob… chance import Queue from Queue instead of importing it from
multiprocessing
? This would block. Your argument with `communicate()` does not hold…
Threading Or Multiprocessing???
Programming
Software Development
14 Years Ago
by twohot
… that there are different ways to approach his, Threading and
Multiprocessing
being the most popular. I am wondering which will best…
Re: Threading Or Multiprocessing???
Programming
Software Development
14 Years Ago
by richieking
I dont know about
Multiprocessing
but i know that threading+socket will do this job without any issues at all. ;)
Re: Threading Or Multiprocessing???
Programming
Software Development
14 Years Ago
by woooee
The advantages of
Multiprocessing
are: it does not use a GIL and it can use multiple cores if you are on a multi-core machine. This means that it is usually faster, but it ultimately comes down to what you understand and can use.
Python subprocess return code without waiting with multiprocessing
Programming
Software Development
10 Years Ago
by fatalaccidents
… I've read. I'm wanting to use subprocess and
multiprocessing
to spawn a bunch of jobs serially and return the…
Re: Python subprocess return code without waiting with multiprocessing
Programming
Software Development
10 Years Ago
by fatalaccidents
… output for a logfile. Also, I'm trying to use
multiprocessing
to spawn this across multiple processors. That's why I…
Re: Python subprocess return code without waiting with multiprocessing
Programming
Software Development
10 Years Ago
by fatalaccidents
… processors. #!/usr/bin/env python # -*-coding: utf8-*- # ./main.py from
multiprocessing
import Process, Queue from subprocess import Popen, PIPE def runJob…
Re: multiprocessing blues in Windows7
Programming
Software Development
12 Years Ago
by vegaseat
Thanks for letting us know!
Re: Multiprocessing causes BSOD
Programming
Software Development
12 Years Ago
by Gribouillis
Upgrade to linux !
Re: Multiprocessing causes BSOD
Programming
Software Development
12 Years Ago
by delta_frost
Not a viable option :P I actually meant to do some sort of benchmarking by finding out primes in parallel by dividing the task by ranges between the 8 cores on my i7.But running the above code simply freezes the system,not to mention various BSODs at times.
Re: Multiprocessing causes BSOD
Programming
Software Development
12 Years Ago
by delta_frost
Thanks pyTony.The code runs without freezing up the system but does not produce any output http://s16.postimage.org/txd52wyyd/err.png Do I have to import the module and use it in the **IDLE** to get that to work ?
Re: Multiprocessing causes BSOD
Programming
Software Development
12 Years Ago
by TrustyTony
You need to run it properly from command line double click etc. IDLE does not work.
Re: Multiprocessing causes BSOD
Programming
Software Development
12 Years Ago
by delta_frost
Oh!! Thanks a lot.That saved a lot of time.
Re: Multiprocessing for an HPC
Programming
Software Development
10 Years Ago
by vegaseat
You might want to take a look at: https://docs.python.org/dev/library/concurrent.futures.html
Re: Multiprocessing for an HPC
Programming
Software Development
10 Years Ago
by fatalaccidents
Thanks for the response. I think my issue has more to do with how to run a Pool on the backend of a supercomputer. The code is working. Does anyone have any experience with how to go about this? I don't think the concurrent futures module (although it looks like it has some nice features) will take care of this problem for me, unless I'm …
Re: Multiprocessing for an HPC
Programming
Software Development
10 Years Ago
by vegaseat
Sorry, I have no access to a High Performance Computer like a Cray. My basement is just too small to fit one in.
Re: Python multiprocessing: How to reload processes when a config is modified
Programming
Software Development
10 Years Ago
by vegaseat
For another possibility see ... http://greenlet.readthedocs.org/en/latest/
Re: Threading , Multiprocessing Simple program
Programming
Software Development
13 Years Ago
by Creatinas
Anyone?
1
2
3
4
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC