Re: ThreadStaticAttribute and threadpool

Discussion in 'ASP .Net' started by David Browne, Jul 11, 2003.

  1. David Browne

    David Browne Guest

    "Calvin" <> wrote in message
    news:02c701c347dd$c49cc9e0$...
    > I assume every request is using a different thread, am I
    > right?
    >
    > If a request is retriving a thread from a threadpool
    > instead of creating a new thread (is this the case in
    > IIS), what will happen to thread static variable?
    > [threadstatic].
    >
    > I have applications depending on thread variable, I am not
    > sure those thread static variable is resetted or not. And
    > it's hard to test!
    >
    > Anyone has some inside knowlodge of this?
    >


    I think you might want to store your data in the Session,
    instead of in a ThreadStatic variable.

    David
    David Browne, Jul 11, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bruce barker

    Re: ThreadStaticAttribute and threadpool

    bruce barker, Jul 11, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    504
    bruce barker
    Jul 11, 2003
  2. Scott Allen
    Replies:
    1
    Views:
    1,940
    Henri
    Dec 14, 2004
  3. Douwe
    Replies:
    0
    Views:
    718
    Douwe
    Dec 8, 2005
  4. Replies:
    3
    Views:
    1,086
    Samuel R. Neff
    Oct 17, 2007
  5. Philipp Kraus

    threadpool and ui paint

    Philipp Kraus, May 13, 2014, in forum: Java
    Replies:
    6
    Views:
    125
    markspace
    May 13, 2014
Loading...

Share This Page