Re: basic threading question
- From: "[david]" <david@xxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 19:05:34 +1100
chris.monsanto@xxxxxxxxx wrote:
On Oct 30, 7:58 pm, "bambam" <da...@xxxxxxxxx> wrote:If I have 37 threads, all calling a large function 'f', are the formal parameters thread safe?Are function variables thread safe?
def f(a):
# whatever
return float(a)
Is that OK?
def f(a):
#whatever
b=a:
#whatever:
return float(b)
Is that OK?
Steve.
Huh?
That is, will the formal parameters be trashed? Do you need to use locks or semaphores before using formal parameters? Are the labels for
formal parameters static?
If I have 73 threads, all calling a large function 'f', are the local values thread safe? Does each thread maintain it's own stack? Are the labels for local values stack-based?
Steve.
.
- Follow-Ups:
- Re: basic threading question
- From: Bryan Olson
- Re: basic threading question
- References:
- basic threading question
- From: bambam
- Re: basic threading question
- From: chris . monsanto
- basic threading question
- Prev by Date: Python and SQLite release cycles
- Next by Date: Re: jpeg image read class
- Previous by thread: Re: basic threading question
- Next by thread: Re: basic threading question
- Index(es):
Relevant Pages
|
|