elie-saliba02 / UserInterface

User Interface for SsMachMo
0 stars 0 forks source link

Multiprocessing/Multithreading Architecture on the Gateway #13

Open elie-saliba02 opened 1 year ago

elie-saliba02 commented 1 year ago

Process and Thread for User Interface. Process for every Node connection. Thread for : BLE Connection, Local DataBase, Remote Website DataBase.

elie-saliba02 commented 1 year ago

Multiple Processes with Multiple Threads https://stackoverflow.com/questions/25037154/multiple-processes-with-multiple-threads-in-python

elie-saliba02 commented 1 year ago

Figure out if multiple threads run on multiple cores in python.

elie-saliba02 commented 1 year ago

threading module is built up on thread. it uses the ''POSIX thread implementation'' pthread of your OS. https://stackoverflow.com/questions/36795086/on-what-cpu-cores-are-my-python-processes-running

elie-saliba02 commented 1 year ago

Get processor number in Windows https://stackoverflow.com/questions/76166230/how-can-a-python-program-determine-which-core-it-is-running-on

elie-saliba02 commented 1 year ago

Check how many threads are actively running https://stackoverflow.com/questions/12476888/how-to-check-the-number-of-currently-running-threads-in-python