diff --git a/PA008/.gitignore b/PA008/.gitignore new file mode 100644 index 0000000..38105ec --- /dev/null +++ b/PA008/.gitignore @@ -0,0 +1,24 @@ +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* \ No newline at end of file diff --git a/PA008/Makefile b/PA008/Makefile new file mode 100644 index 0000000..a50e34f --- /dev/null +++ b/PA008/Makefile @@ -0,0 +1,14 @@ +red=`tput setaf 1` +green=`tput setaf 2` +reset=`tput sgr0` + +# Variables so its easy to make changes if I need to (it ended up being helpful) + +all: test +test: concurrency.py + @echo "${green}For N = 4${reset}" + python3 concurrency.py 4 + @echo "${green}For N = 8${reset}" + python3 concurrency.py 8 + @echo "${green}For N = 16${reset}" + python3 concurrency.py 16 diff --git a/PA008/README.md b/PA008/README.md new file mode 100644 index 0000000..85f82ed --- /dev/null +++ b/PA008/README.md @@ -0,0 +1,12 @@ + +## Usage + +### Testing the code +1. Execute the code for N=4,8,16 + 1. `make` + + + +### Executing The python program alone +1. `python3 concurrency.py N` + 1. Where N is the size of the NxN matrix \ No newline at end of file diff --git a/PA008/readme.txt b/PA008/readme.txt new file mode 100644 index 0000000..e69de29