Skip to content

rfm0905/threadracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thread Racing

  • was reviewing concurrency and wanted to make the threads race
  • first one uses a barrier, second one just interleaves them. avoids the println! lock by acquiring and writing/reading the Rwlock in a snapshot scope. Race3 and 4 are the same as 1/2 but without the snapshot.
  • barrier approach seems to be the best
  • def has some memory leaks or smth

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages