Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Class public shared Variables vs. Application Variables in ASP.NET

Reply
Thread Tools

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

 
 
avnrao
Guest
Posts: n/a
 
      05-07-2004
Inline ..
Av.
"Qingdong Z." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola MCSE 4 11-15-2006 02:40 AM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola Microsoft Certification 3 11-14-2006 05:18 PM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd loyola MCSD 3 11-14-2006 05:18 PM
microsoft.public.certification, microsoft.public.cert.exam.mcsa, microsoft.public.cert.exam.mcad, microsoft.public.cert.exam.mcse, microsoft.public.cert.exam.mcsd realexxams@yahoo.com Microsoft Certification 0 05-10-2006 02:35 PM
microsoft.public.dotnet.faqs,microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.windowsforms,microsoft.public.dotnet.general,microsoft.public.dotnet.languages.vb Charles A. Lackman ASP .Net 1 12-08-2004 07:08 PM



Advertisments