-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Pandurang_Nayak
Message 3 in Discussion


 
Here goes:
 
a. Monitor
    Monitors are a locking 
mechanism provided for synchronized access to objects. I will explain this in 
more detail after telling you about Threading.
 
b. Boxing and Unboxing:
    Data types are of two 
types: Value types and Reference types. Value types are the primitive data 
types, which are in-built into yor programming language/framework. Typical 
examples: Int, Boolean, etc.  
    Reference types are types 
that can be derived from. Most of your objects/classes in the framework are 
reference types. 
    Because of the nature of 
these two types you cannot directly assign the value of one type to another 
type. Hence you use boxing (value to reference) or unboxing (reference to value) 
for interchange of values between types.
 
c. Threading:
    Every process runs in a 
thread of its own. If you look at it from the processor's point of view, a 
thread is merely a series of instructions issued by a particular process. Now 
since many programs are running at one time, multiple threads will be running in 
the system. A typical processor can only handly one thread at a time. If in your 
program you wish to do some "multi-tasking" - like running a background process 
when your foreground application is doing something, you might wish to put the 
background process in a seperate thread. In this case, two threads are running 
from your application. One your main thread, and one the spawned 
thread.
 
If you wish a piece of code to be accessed 
only by ONE thread, you use Monitors to lock that piece of code.
 
I know I have been quite cryptic. The reason 
being I am typing this and doing something parallely. If you have VS.NET 
installed, try reading up on MSDN. It has extensive information on all these 
topics. You could even try searching on MSDN online if you don't have MSDN 
locally.
 
HTH
Pandurang

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to