RE: Email Program

2009-03-01 Thread Thomas Raef
I totally agree. No sarcasm here.

 -Original Message-
 From: python-list-bounces+traef=ebasedsecurity@python.org
 [mailto:python-list-bounces+traef=ebasedsecurity@python.org] On
 Behalf Of Christian Heimes
 Sent: Saturday, February 28, 2009 8:24 PM
 To: python-list@python.org
 Subject: Re: Email Program
 
 Thomas Raef wrote:
  What a great response.
 
 It's a correct, straight forward and short answer to the op's
question.
 
 Christian
 
 --
 http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list


RE: Email Program

2009-02-28 Thread Thomas Raef
What a great response.

 -Original Message-
 From: python-list-bounces+traef=ebasedsecurity@python.org
 [mailto:python-list-bounces+traef=ebasedsecurity@python.org] On
 Behalf Of MRAB
 Sent: Saturday, February 28, 2009 8:00 PM
 To: python-list@python.org
 Subject: Re: Email Program
 
 J wrote:
  Is it possible to make a GUI email program in Python that stores
  emails, composes, ect?
 
 Yes.
 --
 http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list


RE: Distributing simple tasks

2009-02-06 Thread Thomas Raef
 

Hi,

Suppose I have an array of functions which I execute in threads (each
thread get a slice of the array, iterates over it and executes each
function in it's slice one after the other). Now I want to distribute
these tasks between two machines, i.e give each machine half of the
slices and let it run them in threads as described above. Is there an
easy way, or an article on this matter you can point me to?

Thanks, Noam

 

I would suggest maybe a separate queue machine that would hand out each
next function. That way if one machine takes a little longer, the
faster machine can keep picking off functions and running them, while
the slower machine can finish it's task.

 

Just a thought.

--
http://mail.python.org/mailman/listinfo/python-list


Threads, forks, multiplexing - oh my

2008-12-21 Thread Thomas Raef
I have a program that was created by someone else and it does it's job
beautifully.

 

I now want to run multiple instances of this program on a client, after
receiving the command line and args from a broker, dispatcher, whatever
you want to call it.

 

This dispatcher will listen for a connection from a client and then pass
this client the command line to run this python program. The client will
receive the command line, run the python program and then go get another
one to run. It might run this program 4 times simultaneously (or so it
will seem).

 

I've read where forks will run programs but they replace the calling
program - is that correct? Am I reading that right? If so, then my
client program will have to use forks so it can run a program. Then are
threads to run functions and not full-fledged programs?

 

When, if ever, would I want to look at implementing multiplexing?

 

Please help me clarify and if possible give me some direction for this.

 

Thank you in advance.

 

Thomas J. Raef

www.ebasedsecurity.com

www.wewatchyourwebsite.com

We Watch Your Website because - you don't

 

--
http://mail.python.org/mailman/listinfo/python-list