home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / Readme_htm_95________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Extensible Markup Language  |  2003-03-28  |  5.2 KB  |  68 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8"?><root xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:d2="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><?xml-stylesheet type="text/xsl" href="..\..\..\readme.xsl"?><HTML><HEAD><TITLE>Thread Join Synchronization Sample</TITLE><STYLE>
  2.     .Title{FONT-FAMILY: Verdana;FONT-SIZE: large;COLOR: #808080}
  3.     </STYLE><STYLE>
  4.     .Heading{FONT-FAMILY: Verdana;FONT-SIZE: large}
  5.     </STYLE><STYLE>
  6.     .SectionBreak{FONT-SIZE: small;MARGIN-BOTTOM: 2em}
  7.     </STYLE><STYLE>
  8.     .SmallBreak{FONT-SIZE: small;MARGIN-BOTTOM: 1.5em}
  9.     </STYLE><STYLE>
  10.     .Text{FONT-FAMILY: Verdana;FONT-SIZE: x-small}
  11.     </STYLE><STYLE>
  12.     .FixedHeading{FONT-FAMILY: Verdana;FONT-SIZE: x-small}
  13.     </STYLE><STYLE>
  14.     .FixedText{MARGIN-LEFT: 3ex;FONT-FAMILY: Lucida Console;FONT-SIZE: x-small;FONT-WEIGHT: Bold}
  15.     </STYLE><STYLE>
  16.     .ListSansBullets {list-style-type: none;FONT-FAMILY: Verdana;FONT-SIZE: x-small}
  17.     </STYLE></HEAD><BODY><table><tr><td><h2 class="Title">Thread Join Synchronization Sample</h2></td><td valign="baseline" class="Text">
  18.             ┬á┬á┬á
  19.               
  20.                   (Console Application)
  21.                 </td></tr></table><p class="Text">
  22.     This document contains the release information for the .NET Framework JoinThread sample. You will find the following sections below: 
  23.     </p><ul class="Text"><li><a href="#_Sample_Overview">Overview</a></li><li><a href="#_Sample_Topics">Topics</a></li><li><a href="#_Location_of_Sample">Location</a></li><li><a href="#_Building_the_Sample">Building the sample</a></li><li><a href="#_Running_the_Sample">Running the sample</a></li><li><a href="#_sdkvars">Notes</a></li></ul><p class="SectionBreak" /><h4 class="Heading"><a name="_Sample_Overview" />
  24.     Overview
  25.     </h4><p class="Text">
  26. This sample demonstrates use of the Thread class. The sample creates a second thread and starts it running on a static method of the App class.  The primary thread then waits for the second thread to finish by calling the Join() method of the class.
  27. </p><p class="SectionBreak" /><h4 class="Heading"><a name="_Sample_Topics" />
  28.   Topics
  29.   </h4><p class="Text">
  30.   The following bullets briefly describe the classes and technologies used by this sample.
  31.   </p><ul class="Text"><li><b>Thread Synchronization - </b><ul class="Text"><li><b>Thread - </b>
  32.          The sample first creates a new Thread object and starts the thread using the Start() method.  Then the sample uses the Join() method to wait for the new thread to terminate.  If the Join() method were not called by the main thread of this sample, a race condition would occur between the two threads.  If this were to happen, the second thread may not be able to finish processing before the application exits.
  33.       </li></ul></li><li><b>Delegates - </b><ul class="Text"><li><b>ThreadStart - </b>
  34.          The ThreadStart delegate type is used by this sample to create a type-safe callback method for the Thread class to use. 
  35.       </li></ul></li></ul><p class="SectionBreak" /><h4 class="Heading"><a name="_Location_of_Sample" />
  36.     Location
  37.     </h4><p class="Text">
  38.     This sample is located in the <a href="." title="Jump to Folder" target="_blank">Technologies\Threading\JoinThread</a> subdirectory of the .NET Framework SDK samples directory.
  39.     </p><p class="FixedHeading">
  40.     For Example:
  41.       <p class="FixedText">
  42.       C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Threading\JoinThread</p></p><p class="SectionBreak" /><h4 class="Heading"><a name="_Building_the_Sample" />
  43.     Building the Sample
  44.     </h4><p class="Text">
  45.     In order to properly build and run this sample, the following steps need to be performed.
  46.     </p><p class="Text">
  47.       Type <b>BUILD.bat</b> from the command line.<p class="FixedHeading">
  48.   For Example:
  49.   </p><p class="FixedText">
  50.          C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Threading\JoinThread\VB>Build.bat
  51.       </p></p><p class="SectionBreak" /><h4 class="Heading"><a name="_Running_the_Sample" />
  52.     Running the Sample
  53.     </h4><p class="Text">
  54.     In order to run this sample, follow the instructions listed below.
  55.     </p><span class="Text"><ul class="Text"><li>
  56.       Type <b>JoinThread.exe</b> from the command line.<p class="FixedHeading">
  57.   For Example:
  58.   </p><p class="FixedText">
  59.          C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Threading\JoinThread\VB>JoinThread.exe
  60.       </p></li></ul></span><p class="SectionBreak" /><h4 class="Heading"><a name="_sdkvars" />
  61.     Notes
  62.     </h4><p class="Text">
  63.     For the .Net Framework samples to function properly, your Path, Include, and Lib environment variables must be set correctly. 
  64.     In many cases, the SDK install program updates these environment variables for you. However, if you installed the .Net Framework SDK 
  65.     using Visual Studio .NET, or unselected "register environment variables" during setup, these environment variables will not be updated. 
  66.     You can set the Path, Include and Lib environment variables by running SDKVars.bat, located in the <i><SDKRoot>\Bin</i> directory. 
  67.     SDKVars.bat must be executed in every command shell.
  68.     </p></BODY></HTML></root>