FTDI Community

General Category => Discussion - Software => Topic started by: Rajavelu on November 20, 2018, 05:28:32 AM

Title: Prioritizing the threads
Post by: Rajavelu on November 20, 2018, 05:28:32 AM
I have the following threads being used for USB Pendrive
        tcbSETUP = vos_create_thread_ex(25, 1024, setup, "Setup", 0);
   tcbUART = vos_create_thread_ex(25, 1024, UART, "Read", 0);
   tcbBOMS = vos_create_thread_ex(25, 1024, BOMS, "Write", 0);


and following thread for USB Keyboard
    tcbFIRMWARE = vos_create_thread_ex(25, 4096, firmware, "Application", 0);


Will the vos_start_scheduler schedules the thread  so that the threads being created will run forever?

I have combined both of them so the setup,uart,boms goes on fine and so the firmware doesn't work at all, i suspect the process is within those three threads alone. How to make all threads work?