Changeset b3048d4 for src/tests/concurrent/examples
- Timestamp:
- Jan 2, 2018, 2:19:30 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 300d75b
- Parents:
- 8aa474a (diff), 54aba8d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/tests/concurrent/examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/examples/boundedBuffer.c
r8aa474a rb3048d4 8 8 // Created On : Mon Oct 30 12:45:13 2017 9 9 // Last Modified By : Peter A. Buhr 10 // Last Modified On : T hu Dec 14 21:28:52 201711 // Update Count : 3 210 // Last Modified On : Tue Jan 2 12:18:18 2018 11 // Update Count : 33 12 12 // 13 13 … … 91 91 processor p; 92 92 93 // random_seed( getpid() );94 random_seed( 1003 );93 //srandom( getpid() ); 94 srandom( 1003 ); 95 95 96 96 for ( i = 0; i < Cons; i += 1 ) { // create consumers -
src/tests/concurrent/examples/datingService.c
r8aa474a rb3048d4 8 8 // Created On : Mon Oct 30 12:56:20 2017 9 9 // Last Modified By : Peter A. Buhr 10 // Last Modified On : Wed Dec 6 12:19:19 201711 // Update Count : 2 110 // Last Modified On : Tue Jan 2 12:19:01 2018 11 // Update Count : 22 12 12 // 13 13 … … 91 91 Boy *boys[NoOfPairs]; 92 92 93 random_seed( /*getpid()*/ 103 );93 srandom( /*getpid()*/ 103 ); 94 94 95 95 for ( unsigned int i = 0; i < NoOfPairs; i += 1 ) {
Note: See TracChangeset
for help on using the changeset viewer.