To thread or not to thread

2005-07-28 Thread Sidd
Hello,
  I was recently reading an article on threading in python and I
came across Global Interpreter Lock,now as a novince in python I was
cusrious about

1.Is writing a threaded code in python going to perform well than a
normal python  code.If so on what basis can it performance be measured.

2.Is writing a threaded code in python better than a code written in
C/C++ using PTHREADS.

If someone can comment on these questions, it would be great.

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


Related To Threads

2005-08-20 Thread Sidd
Hello,
  I want to write a thread in python which can be invoked for say 5
sec, within that the threads function would be to take input,is it
possible because i tried it and found that raw_input() is blocking
threads.

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


Writing Multithreaded Client-Server in Python.

2005-08-29 Thread Sidd
Hi,
   I tried finding and example of multithreaded client-serve program in
python. Can any one please tell me how to write a multithreaded
client-server programn in python such that
1.It can handle multiple connections
2.It uses actual threads and not select() or some other function

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


Re: Probstat Combination Objects and Persistence

2007-09-16 Thread Sidd
On Sep 16, 8:01 am, dohertywa <[EMAIL PROTECTED]> wrote:
> Hi:
>
> I'm working with probstat module which does an excellent job for the
> project I'm working on.
>
> I am passing the Combination objects I generate to generator functions
> that allow me to scale down the results.
>
> I am trying to find a way however to store the end resultant
> Combination object.  Try to pickle it, and Python segfaults.
>
> I want to be able to store the Combination object at any point so I
> may operate on it later without having to repeat previous work.
>
> Any suggestions?
>
> TVKIA,
> Adam

You might want to take a look at this tutorial:http://www.ibm.com/
developerworks/library/l-pypers.html

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


Re: Can any body help me

2006-05-25 Thread Sidd
1.Given a test file containing lines of words such as (abc, abb,
abd,abb, etc), write a script that prints, in order of frequency, how
many times each word appears in the file.

Use dictionary datastructure in python and simple if-else statement.
Its simple give it a try.

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