36 finally <codeph>WriterThread1</codeph> is executed. Hence <codeph>ReaderThead</codeph> can |
36 finally <codeph>WriterThread1</codeph> is executed. Hence <codeph>ReaderThead</codeph> can |
37 only print the contents of the DBforSMP2.db in the console because DBforSMP1 |
37 only print the contents of the DBforSMP2.db in the console because DBforSMP1 |
38 is empty. in an SMP environment, threads run simultaneously and <codeph>ReaderThread</codeph> can |
38 is empty. in an SMP environment, threads run simultaneously and <codeph>ReaderThread</codeph> can |
39 print the contents of both the databases. </p> </section> |
39 print the contents of both the databases. </p> </section> |
40 <section id="GUID-3686F166-C4DD-4269-9B9C-F0027F53547E"><title>Building and configuring</title> <p>To build the example: </p> <ul> |
40 <section id="GUID-3686F166-C4DD-4269-9B9C-F0027F53547E"><title>Building and configuring</title> <p>To build the example: </p> <ul> |
41 <li id="GUID-037442C7-2436-5152-9A3E-9DC0B4283A9C-GENID-1-7-1-14-1-1-8-1-4-1-25-1-30-1-3-5-3-1"><p>The example builds an |
41 <li id="GUID-037442C7-2436-5152-9A3E-9DC0B4283A9C-GENID-1-10-1-15-1-1-8-1-4-1-25-1-30-1-3-5-3-1"><p>The example builds an |
42 executable called <filepath>smpexample.exe</filepath> in the standard location. </p> </li> |
42 executable called <filepath>smpexample.exe</filepath> in the standard location. </p> </li> |
43 <li id="GUID-B7C849B9-0885-5253-A78B-71854F86D772-GENID-1-7-1-14-1-1-8-1-4-1-25-1-30-1-3-5-3-2"><p>You can build the example |
43 <li id="GUID-B7C849B9-0885-5253-A78B-71854F86D772-GENID-1-10-1-15-1-1-8-1-4-1-25-1-30-1-3-5-3-2"><p>You can build the example |
44 from your IDE or the command line. </p> <p>If you use an IDE, import the <filepath>bld.inf</filepath> file |
44 from your IDE or the command line. </p> <p>If you use an IDE, import the <filepath>bld.inf</filepath> file |
45 of the example into your IDE, and use the build command of the IDE. </p> <p>If |
45 of the example into your IDE, and use the build command of the IDE. </p> <p>If |
46 you use the command line, open a command prompt, and set the current directory |
46 you use the command line, open a command prompt, and set the current directory |
47 to the source code directory of the example. You can then build the example |
47 to the source code directory of the example. You can then build the example |
48 with the SBSv1 build tools with the following commands: </p> <p><userinput>bldmake |
48 with the SBSv1 build tools with the following commands: </p> <p><userinput>bldmake |