You are answering a different question to the one that you originaly posed:
will get JIT'd twice i.e. it's not like python - where it compiles to a .pyc
"chak" <r_chakravarthy@hotmail.com> wrote in message
news:eQBiBPDPGHA.3460@TK2MSFTNGP15.phx.gbl...
> Thanks. The article referred to by you states :
>
> "As you know, the just-in-time (JIT) compiler is used for compiling the
> Microsoft intermediate language (MSIL) code in a .NET assembly into native
> code for the local machine immediately before the code is executed. This
> is temporary code; it is created and stored in the running processes's
> memory space, which is reclaimed by the OS when the process dies. Thus, it
> will be regenerated each time a new process needs it."
>
> So i think it answers my question to the effect that even if two different
> people accessed the same application seperately, from 2 different PC's, it
> would create 2 instances of that application in 2 different application
> domains of the respective local machines , by JIT compiling it twice (one
> for each instance). Is my understanding right ?
>
> Thanks.
>
>
> "Alan J. McFarlane" <alanjmcf@yahoo.com.INVALID> wrote in message
> news:44037b5c$0$3605$ed2e19e4@ptn-nntp-reader04.plus.net...
>> In article news:uI1NIA6OGHA.1696@TK2MSFTNGP14.phx.gbl, chak wrote:
>>> These may be a very basic question.
>>>
>>> 1) Is IL compiled to native code every time a application is invoked ?
>>>
>>> 2) If a process has multiple appdomains (i think each instance of an
>>> application maps to an appdomain), if one application is closed will
>>> the appdomain close ? If the same application is then re-invoked will
>>> it use the JIT-ted code generated last time , or will it again JIT ?
>>>
>> Have a read of this article,
>>
http://msdn.microsoft.com/msdnmag/issues/05/04/NGen/default.aspx >> --
>> Alan J. McFarlane
>>
http://www.alanjmcf.me.uk/
>> Please follow-up in the newsgroup for the benefit of all.
>
>