Category Archives: Advanced
C++ || Decrease By Half Sorting Using Bubble Sort, Quick Sort, & Optimized Bubble Sort
The following is another homework assignment which was presented in an Algorithm Engineering class. Using a custom timer class, the following is
C++ || Knapsack Problem Using Exhaustive Search
The following is another homework assignment which was presented in an Algorithm Engineering class. Using a custom timer class, the following is
C++ || Empirical Analysis Using Min Element, Bubble Sort, & Selection Sort
The following is another homework assignment which was presented in an Algorithm Engineering class. Using a custom timer class, the following is
C++ || Snippet – Custom Template “ToString” Function For Primitive Data Types
The following is a custom template “ToString” function which converts the value of a primitive data type (i.e: int, double, long, unsigned,
C++ || File Copier Using Memory Mapped Files
The following is another homework assignment which was presented in an Operating Systems Concepts class. Using commandline arguments, the following is a
C++ || Snippet – How To Create A File Of Any Size
The following is sample code which demonstrates how to create a file of any size using the fseek and fwrite function calls.
C++ || Snippet – How To Use Memory Mapped Files
The following is sample code which demonstrates the use of the “mmap”, “munmap” and “getpagesize” function calls on Unix based systems. A
C++ || Snippet – How To Display The Size Of A File Using Stat
The following is sample code which demonstrates the use of the “stat” function calls on Unix based systems. The stat function returns
C++ || Snippet – Multi-Process Synchronization Producer Consumer Problem Using Threads
The following is sample code which demonstrates the use of POSIX threads (pthreads), aswell as pthread mutex and condition variables for use
C++ || Snippet – How To Create And Use Threads For Interprocess Communication
The following is sample code which demonstrates the use of POSIX threads (pthreads), aswell as the pthread_create, and pthread_join function calls on
C++ || Snippet – How To Override The Default Signal Handler (CTRL-C)
The following is sample code which demonstrates the use of the “signal” function call on Unix based systems. Signals are interrupts delivered
C++ || Multi-Hash Interprocess Communication Using Fork, Popen, & Pipes
The following is another homework assignment which was presented in an Operating Systems Concepts class. Using two pipes, the following is a