add interface for scheduling priority
This commit is contained in:
@@ -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)
|
||||
|
12
examples/high_priority.cpp
Normal file
12
examples/high_priority.cpp
Normal 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
|
||||
|
||||
}
|
Reference in New Issue
Block a user