You may have some issues with disk reading as the drive heads move in
different ways
On Mon, Nov 21, 2011 at 8:15 AM, wrote:
> Hi All,
>
> ** **
>
> Just a question in general. Is it possible that we have opened one file
> in r+ mode ( file1.txt ).
>
> We have 2 threads,
>
> **·
On Wed, Nov 16, 2011 at 6:30 PM, Dave Angel wrote:
> On 11/16/2011 01:22 PM, Dave Angel wrote:
>
>> (You're top-posting. Put your remarks AFTER what you're quoting)
>>
>> On 11/16/2011 12:52 PM, Jack Keegan wrote:
>>
>>> Ok, I thought that processes would do the same job as threads. So would
>>>
You can see an example on how to use multiprocessing.Pool at
http://pythonwise.blogspot.com/2011/03/convert-oggs-to-mp3-fast-way.html
This is ogg -> mp3 but the same idea.
--
http://mail.python.org/mailman/listinfo/python-list
On 11/16/2011 01:22 PM, Dave Angel wrote:
(You're top-posting. Put your remarks AFTER what you're quoting)
On 11/16/2011 12:52 PM, Jack Keegan wrote:
Ok, I thought that processes would do the same job as threads. So
would the
general rule be some thing like so:
If I want another piece of wor
On 11/16/2011 12:55 PM, Michael Hunter wrote:
On Wed, Nov 16, 2011 at 9:27 AM, Dave Angel wrote:
On 11/16/2011 12:00 PM, Jack Keegan wrote:
[...] Processes [...] and the OS is generally better at scheduling them than it
is at
scheduling threads within a single process. If you have multiple co
On Wed, Nov 16, 2011 at 9:27 AM, Dave Angel wrote:
> On 11/16/2011 12:00 PM, Jack Keegan wrote:
>[...] Processes [...] and the OS is generally better at scheduling them than
>it is at
> scheduling threads within a single process. If you have multiple cores, the
> processes can really run simulta
On 11/16/2011 12:00 PM, Jack Keegan wrote:
Hi Chris,
On Wed, Nov 16, 2011 at 1:55 PM, Chris Angelico wrote:
First off, it's better in CPython (the most popular Python) to use
multiple processes than multiple threads.
I had been looking into treads and process/subprocess myself a while ago
a
Hi Chris,
On Wed, Nov 16, 2011 at 1:55 PM, Chris Angelico wrote:
> First off, it's better in CPython (the most popular Python) to use
> multiple processes than multiple threads.
I had been looking into treads and process/subprocess myself a while ago
and couldn't decide which would suit what I
Am 16.11.2011 14:48 schrieb Eduardo Oliva:
Hello, I have a py script that reads for all "m2ts" video files and convert them to
"mpeg" using ffmpeg with command line.
What I want to do is:
I need my script to run 2 separated threads, and then when the first has
finished, starts the next one
Am 16.11.2011 14:48, schrieb Eduardo Oliva:
> Hello, I have a py script that reads for all "m2ts" video files and convert
> them to "mpeg" using ffmpeg with command line.
>
> What I want to do is:
>
> I need my script to run 2 separated threads, and then when the first has
> finished, starts
On 16.11.2011 14:48, Eduardo Oliva wrote:
> I need my script to run 2 separated threads, and then when the first has
> finished, starts the next onebut no more than 2 threads.
> I know that Semaphores would help with that.
> But the problem here is to know when the thread has finished i
On Thu, Nov 17, 2011 at 12:48 AM, Eduardo Oliva wrote:
> Hello, I have a py script that reads for all "m2ts" video files and convert
> them to "mpeg" using ffmpeg with command line.
>
> What I want to do is:
>
> I need my script to run 2 separated threads, and then when the first has
> finished
On Nov 8, 10:52 pm, [EMAIL PROTECTED] wrote:
> OS: Solaris 9
> Python Version: 2.4.4
>
> I need to log certain data in a worker thread; however, I am getting
> an error now when I use two worker threads.
> I think the problem comes from the linelogging.info('Thread Object (%d):(%d),
> Time:%s in s
On Nov 8, 10:52 pm, [EMAIL PROTECTED] wrote:
> OS: Solaris 9
> Python Version: 2.4.4
>
> I need to log certain data in a worker thread; however, I am getting
> an error now when I use two worker threads.
> I think the problem comes from the linelogging.info('Thread Object (%d):(%d),
> Time:%s in s
Jp Calderone <[EMAIL PROTECTED]> writes:
> >Secondly, I don't know about wxPython, but in tkinter you have to
> >resort to a kludge in order for the gui thread to handle gui events
> >and also notice stuff on a queue. There's a tkinter command to run
> >some function after a specified time (say 50
"fo" <[EMAIL PROTECTED]> writes:
> Thanks for the replies. I have a Queue object in the main GUI thread,
> this gets passed to all the worker threads and they add items to it.
> This is all well and good, but what is a good way to get the GUI thread
> to send items back to the worker threads?
Thanks for the replies. I have a Queue object in the main GUI thread,
this gets passed to all the worker threads and they add items to it.
This is all well and good, but what is a good way to get the GUI thread
to send items back to the worker threads?
--
http://mail.python.org/mailman/listinfo/p
Look inthe demo that comes with wxPython it is in tree process and
events -> threads .
There is a nice demo of PostEvent().
Another way would be to use Queues as others have mention .
You can create a new frame and have it call the queue for data.
M.E.Farmer
--
http://mail.python.org/mailman/li
"fo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is a network app, written in wxPython and the socket module. This
> is what I want to happen:
I'm not sure if this will help you, but it solved what was, for me, a
more general problem: not (normally) being able to issue w
On 01 May 2005 10:09:56 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote:
"fo" <[EMAIL PROTECTED]> writes:
How would I get the worker thread to open a GUI window in the main GUI
thread? After that GUI window is open, how can I send and recv messages
from/to the GUI window?
First of all
"fo" <[EMAIL PROTECTED]> writes:
> How would I get the worker thread to open a GUI window in the main GUI
> thread? After that GUI window is open, how can I send and recv messages
> from/to the GUI window?
First of all the favorite Pythonic way to communicate between threads
is with synchroniz
21 matches
Mail list logo