add interface for scheduling priority

This commit is contained in:
Carl Pearson
2019-10-01 06:55:50 -05:00
parent 343b2b35ca
commit bbda6e1262
6 changed files with 65 additions and 1 deletions

View File

@@ -43,6 +43,9 @@ target_link_libraries(cpu-turbo perfect)
add_executable(os-perf os_perf.cpp)
target_link_libraries(os-perf perfect)
add_executable(high-priority high_priority.cpp)
target_link_libraries(high-priority perfect)
if(CMAKE_CUDA_COMPILER)
add_executable(gpu-clocks gpu_clocks.cu)
target_link_libraries(gpu-clocks perfect)

View File

@@ -0,0 +1,12 @@
#include <iostream>
#include "perfect/priority.hpp"
int main(void) {
perfect::init();
PERFECT(perfect::set_high_priority());
// do things with high process scheduling priority
}