- Compile:
g++ -o part1 part1.cpp
- Run:
./part1 <input_file> <output_file> <memory_size> <asc/desc> <columns...>
- Complile:
g++ -pthread -o part2 part2.cpp
- Run:
./part1 <input_file> <output_file> <memory_size> <num_threads> <asc/desc> <columns...>
Input and metadata files should be in the same folder. Output file would be created in the same folder. Subfiles would be automatically deleted by the program. Memory required for other variables is not considered. Max no. of threads is 10.