On 5 June 2012 12:05, dave selby wrote:
> I was running the thread by instantiating a separate class but this
> will make the very neat CallAfter() difficult, is it OK to call a
> method in the main class as a thread in which case the CallAfter()
> should work OK ?
>
> Thanks Again
>
> Dave
--
Hi Dave,
On 5 June 2012 11:13, dave selby wrote:
> Hi All,
>
> If a thread is started and 'self' is passed as a parameter, is it
> acceptable to access methods of the calling class via
> 'self.updateGrid()' etc from within the thread or does everything have
> to be done via wx.lib.pubsub and publ
Hi All,
If a thread is started and 'self' is passed as a parameter, is it
acceptable to access methods of the calling class via
'self.updateGrid()' etc from within the thread or does everything have
to be done via wx.lib.pubsub and publisher calls ?
Cheers
Dave
--
Please avoid sending m
Hi,
I am testing out some stuff with threads and signals. This is just a prototype
of how I want to incorporate it into my main script.
I figured out how to "catch" signals for SIGUSR1 to output what all the thread
children are "working" on. The problem I have is if in terminalA I run my
scrip
On Thu, Sep 10, 2009 at 4:13 AM, Oleg Oltar wrote:
> Hi!
>
> I have a question.
> I want to create simple load test for my web application.
>
> Consider the following script:
>
> while 1:
> urllib2.urlopen("www.example.com")
>
> How can I make it running in several threads?
Have you read at a
On Thu, Sep 10, 2009 at 12:43 PM, Alan Gauld wrote:
> "Oleg Oltar" wrote
>
> I want to create simple load test for my web application.
>> Consider the following script:
>>
>> while 1:
>> urllib2.urlopen("www.example.com")
>>
>
> Just a small caveat.
> If you try a load test like this from a si
"Oleg Oltar" wrote
I want to create simple load test for my web application.
Consider the following script:
while 1:
urllib2.urlopen("www.example.com")
Just a small caveat.
If you try a load test like this from a single PC you might
get very surprising (and non representative) results.
Hi!
I have a question.
I want to create simple load test for my web application.
Consider the following script:
while 1:
urllib2.urlopen("www.example.com")
How can I make it running in several threads?
___
Tutor maillist - Tutor@python.org
To un
hi likeyour post about how to make it listen on one ip and then on two ips isnt this general python, can you please explain how to go about this, this would be very usefulthanks then show us your code and we'll tell youhow to make it into a class that listens on a single IP and how tostart two list
did u try os.spawnv()to spawn other unix commands[EMAIL PROTECTED] wrote: > Hi!Hi !> I don't know what web.py is.> Is it something you wrote?no, this is a simple webserver, (http://webpy.org/)> You'll have to write multi-threaded code if you want it> to run multiple> threads :)> (Unless, of course,
> I just looked at web.py.
> It's not a webserver. It's a toolkit you use to write
> your own webserver.
> Why are you under the impression that it's a webserver?
> Did you just google for 'web server in Python' and find
> this?
you are right, i mean that it is the core of the webserver
> If you
> yes - i will ask the webpy authors
>
> but i expected to fond out a way to start two (or more)
> scripts (web.py) in different threads from one puthon's
> scrypt. OR two pythons interpretators to execute the above
> scrypt ?
>
Python is a programming language. It's not a question about whethe
> Hi!
Hi !
> I don't know what web.py is.
> Is it something you wrote?
no, this is a simple webserver, (http://webpy.org/)
> You'll have to write multi-threaded code if you want it
> to run multiple
> threads :)
> (Unless, of course, Web.py supports threads?)
i will ask the authors about this ...
Orri Ganel wrote:
> Not sure what IIUC stands for, but I am, indeed, running windows. XP
> Home Edition, in fact, with Python 2.4.2 final
If I Understand Correctly
http://www.acronymfinder.com/ is helpful here.
Kent
___
Tutor maillist - Tutor@python
Not sure what IIUC stands for, but I am, indeed, running windows. XP Home Edition, in fact, with Python 2.4.2 finalOn 10/24/05, Kent Johnson <
[EMAIL PROTECTED]> wrote:Hugo González Monteverde wrote:> I have done scripts for decompressing MP3 in the past. I normally follow
> a fork() exec() subproc
Hugo González Monteverde wrote:
> I have done scripts for decompressing MP3 in the past. I normally follow
> a fork() exec() subprocess scheme, and this helps me gain about 30%
> improvement. I'm not an expert, but I have read that CPU time will be
> better used by several processes than for jus
I have done scripts for decompressing MP3 in the past. I normally follow
a fork() exec() subprocess scheme, and this helps me gain about 30%
improvement. I'm not an expert, but I have read that CPU time will be
better used by several processes than for just one, and while one
process is waiting
I knew what he meant, but since most albums have around 12 tracks, 4
tracks per thread gives you 3 threads. In any case, thanks for the
catch on the loop. I'll let you know if it makes a difference.On 10/22/05, Kent Johnson <[EMAIL PROTECTED]> wrote:
Alan means to use two or three threads *total*.O
> I wanted to find out whether os.system() calls block other threads.
> It seems that they don't. (That's a good thing, it means it should
> work for you!) Here is a program to test this:
For threads that run longer than a few seconds, you can visibly verify
this with Sysinterals Process Explorer
Orri Ganel wrote:
> I'll try doing 3 or 4 tracks per thread, then. Thanks for the advice.
>
>
> If you keep the thread count down to two or three you might get
> a noticable improvement but one thread per track, unless you have
> a lot of separate hard disk spindles to distribute the
I'll try doing 3 or 4 tracks per thread, then. Thanks for the advice.If you keep the thread count down to two or three you might get
a noticable improvement but one thread per track, unless you havea lot of separate hard disk spindles to distribute the work willnot help much I suspect.Alan G.
-- Em
> in mind, I thought, why not try to use threads so all the conversions
> happen simultaneously? That way, the whole album will take between 30
> and 50 seconds.
One possible problem with this is that the activity is disk IO bound.
In fact using too many threads could even slow the thing down
Kent Johnson wrote:
>Orri Ganel wrote:
>
>
>>Hello all,
>>
>>I've been working on a program for a week or two now that will convert
>>all the wav files in a folder to mp3s, filling the id3 tags with the
>>correct information as collected from gracenote.com. This part works
>>fine. However,
Orri Ganel wrote:
> Hello all,
>
> I've been working on a program for a week or two now that will convert
> all the wav files in a folder to mp3s, filling the id3 tags with the
> correct information as collected from gracenote.com. This part works
> fine. However, the actual conversion to mp3
Hello all,
I've been working on a program for a week or two now that will convert
all the wav files in a folder to mp3s, filling the id3 tags with the
correct information as collected from gracenote.com. This part works
fine. However, the actual conversion to mp3 takes between 30 and 50
seco
> Remember that I am generating cars even while the
> simulation is running, hence calculating this HCF at
> the beginning is not going to work.
> Any comments?
This won't help you much in writing your program, but you might find
it interesting and vaguely similar to what you're doing:
www.simut
I have run into a problem again.
I thought about simulation time concurrency and
figured an inherent problem with the approach.
The main objective of my project is to simulate
traffic behavious under congested conditions.Hence I
was using semaphores to lock the areas already
occupied by the cars.A
If what you want is something that scales up, then you're attacking
the Wrong Problem. Rather than focus on getting your thread overhead
as small as possible in order to support as much real-time concurrency
as you can, you should (as has been suggested) try to get
simulation-time concurrency with
Hi Hugo,
> I tried my hands at Stackless too... but still had
> problems implementing the concept.
>
> Can anyone guide me on how to spawn simultaneously( or
> pseudo simultaneously) running microthreads using
> stackless.
>
> Here is what i tried..
>
> ef gencars(num,origin,dest,speed):
>
Hi,
Thanx everyone for all your suggestions.I used a
separate thread for every car as I wanted my cars to
run in real time, to coordinate effectively with other
systems like traffic lights for eg. which I cant edit,
hence which cant use the variable time defined by me.
I figured out two ways to ac
OK, as ignorant as I may be on threads, I have read a bit on Stackless
Python's tasklets. Suppossedly they require much less memory than
python's threads.
Information is at www.stackless.com
Hugo
Shitiz Bansal wrote:
Hi,
I am trying to build a traffic network simulator using
python, for my degre
Nothing to do, but did you think about SimPy?
http://simpy.sourceforge.net/
It may make your life much simpler.
G
On Wed, 23 Feb 2005 11:32:12 -0800 (PST), Danny Yoo
<[EMAIL PROTECTED]> wrote:
>
>
> On Wed, 23 Feb 2005, Shitiz Bansal wrote:
>
> > I am trying to build a traffic network simulator us
On Wed, 23 Feb 2005, Shitiz Bansal wrote:
> I am trying to build a traffic network simulator using python, for my
> degree project.
>
> I need to run at least 5-6000 cars simultaneously. I wanted to run each
> car in a separate thread. However , after about 400 threads i am unable
> to create ne
Shitiz Bansal wrote:
Hi,
Googling for my problem i found the following page:
http://gnosis.cx/publish/programming/charming_python_b7.html
It doesnt make much sense to me.It seems that the
author is implementing a series of routines rather
than running them sumultaneously as threads are
supposed to
Some day I'm actually going to learn how to hit the "Reply All" button.
I swear.
Begin forwarded message:
From: Max Noel <[EMAIL PROTECTED]>
Date: February 23, 2005 18:42:37 GMT
To: Shitiz Bansal <[EMAIL PROTECTED]>
Subject: Re: [Tutor] threads
On Feb 23, 2005, at 17:
Hi,
Googling for my problem i found the following page:
http://gnosis.cx/publish/programming/charming_python_b7.html
It doesnt make much sense to me.It seems that the
author is implementing a series of routines rather
than running them sumultaneously as threads are
supposed to do.Am i missing th
Shitiz Bansal wrote:
Hi,
I am trying to build a traffic network simulator using
python, for my degree project.
I need to run at least 5-6000 cars simultaneously.I
wanted to run each car in a separate thread.
However , after about 400 threads i am unable to
create new threads.
There does seem to be
Hi,
I am trying to build a traffic network simulator using
python, for my degree project.
I need to run at least 5-6000 cars simultaneously.I
wanted to run each car in a separate thread.
However , after about 400 threads i am unable to
create new threads.
Here's the code:
>>> cars=range(1000)
>>
38 matches
Mail list logo