Relative Content

Tag Archive for c++terminal

System programming project ideas

I’m taking system programming course this semester and the final exam is a project presentation and I have no idea what to do. In class we are writing a multithreaded C++ code and we test it in windows wsl. Sometimes we use terminal commands in Linux(Ubuntu) for testing as well. The project should focus on multithreading, GPROF, GDB, time (in terminal), top and htop, iostat, vmstat, mpstat, sar: automated neparting, valgrind, perf, unit tests, and mutex. Anyone have ideas other than the one’s that got rejected? In class we wrote a C++ code were define a vector to find the sum of a number then we write a bash file to find the time elapsed (real, system, user) and then we optimize the code with a for loop and a recursive function. We did this for 6 different versions and we compare them. I’m not sure if this is enough context or not but I hope you get the idea of the course/project.

Terminal Loading bar not updating correctly

I’m building a Multilevel Feedback Queue Scheduling(MLFQ) sorting Algorithm simulation and I’m having the results of each process print out to the terminal and they each have a loading bar and I need them to update accordingly. Right now I can get the loading bar to update correctly
This is what it looks like when it is printing: