chore: shift off core 0

main
Sean McBride 4 years ago
parent 7da858304e
commit a221d7938b

@ -5,7 +5,7 @@
#include "generic_thread.h"
#include "module.h"
#define LISTENER_THREAD_CORE_ID 0
#define LISTENER_THREAD_CORE_ID 1
extern pthread_t listener_thread_id;

@ -29,7 +29,7 @@ int32_t debuglog_file_descriptor = -1;
uint32_t runtime_processor_speed_MHz = 0;
uint32_t runtime_total_online_processors = 0;
uint32_t runtime_worker_threads_count = 0;
const uint32_t runtime_first_worker_processor = 1;
const uint32_t runtime_first_worker_processor = 2;
FILE *runtime_sandbox_perf_log = NULL;
@ -60,7 +60,7 @@ runtime_allocate_available_cores()
/* Find the number of processors currently online */
runtime_total_online_processors = sysconf(_SC_NPROCESSORS_ONLN);
printf("\tCore Count: %u\n", runtime_total_online_processors);
uint32_t max_possible_workers = runtime_total_online_processors - 1;
uint32_t max_possible_workers = runtime_total_online_processors - 2;
if (runtime_total_online_processors < 2) panic("Runtime requires at least two cores!");

Loading…
Cancel
Save