To thread or not to thread



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.

.



Relevant Pages

  • Re: To thread or not to thread
    ... > I was recently reading an article on threading in python and I ... > 2.Is writing a threaded code in python better than a code written in ... have a bunch of threads which need some arbitrary scheduling? ...
    (comp.lang.python)
  • Re: To thread or not to thread
    ... > I was recently reading an article on threading in python and I ... > 2.Is writing a threaded code in python better than a code written in ... Much better performance than threads with a lot less memory and cpu ... 100tps I get about 1% cpu usage. ...
    (comp.lang.python)
  • Re: threading and multicores, pros and cons
    ... "Some time back, a group did remove the GIL from the python core, and ... implemented locks on the core code to make it threadsafe. ... problem was that while it worked, the necessary locks it made single ... threaded code take significantly longer to execute." ...
    (comp.lang.python)
  • Debugging threaded Python code
    ... I frequently have to debug some fairly tricky Python multi-threaded code, and I need some help using the debugger to help me diagnose the problems when they occur. ... Yes, I know that the best option with threaded code that is problematic is to rewrite it, but that's not really an option that I have. ...
    (comp.lang.python)
  • Re: Understanding search queries, semantics, and "Meaning" ...arent we all looking for meaning?
    ... Python or C or Java or Perl where you give instructions on HOW to run ... You are writing a program in the sense of Lisp or Scheme ... Oh, and BTW, lambdas are just an expression to generate a function ... It makes writing a compiler much, ...
    (comp.lang.python)