Giter VIP home page Giter VIP logo

concurrent-queue's Introduction

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

concurrent-queue's People

Contributors

helloram52 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.