FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:



Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


Author Topic: Prioritizing the threads  (Read 46 times)

Rajavelu

  • Newbie
  • *
  • Posts: 5
    • View Profile
Prioritizing the threads
« 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?
Logged