Re: Class public shared Variables vs. Application Variables in ASP.NET

Discussion in 'ASP .Net' started by avnrao, May 7, 2004.

  1. avnrao

    avnrao Guest

    Inline ..
    Av.
    "Qingdong Z." <> wrote in message
    news:...
    >I have several challenging questions for threading synchronization in
    >asp.net
    >
    > 1. Does class shared variable share same feathers as ASP.NET application
    > variable?
    > Ans. NO. class shared variables are lost once the request is being
    > processed and page is sent back to client. But application variables are
    > stored on the server.


    > 2. If it is, it may work better than application variables, because we
    > don't need type conversion.
    >
    > 3. Can web farm share same class shared variable? This is not critical for
    > my case, just curious.
    > I dont think so.
    > 4. I want to declare a ReaderWriterLock object for thread synchronization,
    > should I declare it as public shared variable in a class, or an
    > application variable?
    > answer 1 answers it.
    > 5. If I declare a public variable as Hash Table, I can put all my Thread
    > Related objects into it. So I can create a new Thread, or Abort a thread
    > any time. Is that correct?

    not clear. but hash table stores anything.
    avnrao, May 7, 2004
    #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. Charles A. Lackman
    Replies:
    1
    Views:
    1,322
    smith
    Dec 8, 2004
  2. SpamProof
    Replies:
    0
    Views:
    528
    SpamProof
    Oct 21, 2003
  3. Joe Fallon
    Replies:
    3
    Views:
    751
    =?Utf-8?B?Z3V5?=
    Jul 16, 2004
  4. DaveLessnau
    Replies:
    3
    Views:
    413
    Howard
    May 16, 2005
  5. Chip Gore
    Replies:
    6
    Views:
    2,165
    Ben Voigt [C++ MVP]
    Apr 10, 2008
Loading...

Share This Page