helloram52 / concurrent-queue Goto Github PK
View Code? Open in Web Editor NEWConcurrent Queue with add, remove & search operations
Concurrent Queue with add, remove & search operations
Notes: ------ - We used ThreadPool to take care of thread creation/deletion as well as to assign list operations to all the threads. - The run parameters are configured in com/multicore/RunParameters.java which needs to be edited for a different run configuration. - The program logs to run.log in the current directory. Run parameters: --------------- To modify any of the below run parameters, please modify com/multicore/RunParameters.java - NUMBER_OF_RUNS - Number of times to run each experiment. Each run of the program executes Lockbased and Lockfree queue algorithms on 2 modes(ENQ, DEQ only & ENQ, DEQ, isEmpty) for 1 to n threads(n = 2 * number of processors in the system/allocated to JVM). - Note: We vary the threads exponentially i.e. from 1, 2, 4,.. - TARGET_OPERATION_COUNT_FOR_EACH_MODE - Number of operations that are to be performed in each of the 2 run modes. - MAX_KEY_SIZE - Range in which the enqueue key should be selected randomly from a uniform distribution. Run: --- > cd SRC_DIRECTORY > javac com/multicore/Main.java > java com.multicore.Main To run the program in verification mode, run it as below. > java com.multicore.Main 100 1 where 100 is the TARGET_OPERATION_COUNT_FOR_EACH_MODE parameter specified above. Running in TACC: ---------------- - Please use the below script. #!/bin/bash #SBATCH -J Project3_large # job name #SBATCH -o Project3_large.o%j # output and error file name (%j=jobID) #SBATCH -n 32 # total number of cpus requested #SBATCH -p largemem # queue -- normal, development, etc. #SBATCH -t 01:00:00 # run time (hh:mm:ss) - 1.5 hours #SBATCH [email protected] #SBATCH --mail-type=begin # email me when the job starts #SBATCH --mail-type=end # email me when the job finishes cd $HOME/ConcurrentQueue rm -Rf com/multicore/*.class javac com/multicore/Main.java -Xlint:unchecked java com.multicore.Main 1000000
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.