Priority of io_service in a multithreaded application
Hi, I have a question about priority of io_service in a multithreaded application. I'm using async_read function to read some bytes from serial port in one thread. And application has other threads. Does this io_service inherit the priority of the calling thread? If not how can i set the priority of this io_service? Thanks, Best Regards, Gözde Koş ###################################################################### Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi gorusu olmak zorunda degildir. ###################################################################### Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. E-mails to and from the company are monitored for operational reasons and in accordance with lawful business practices. Any views or opinions presented are solely those of the author and do not necessarily represent the views of the company. ######################################################################
I have a question about priority of io_service in a multithreaded application. I'm using async_read function to read some bytes from serial port in one thread. And application has other threads. Does this io_service inherit the priority of the calling thread? If not how can i set the priority of this io_service?
io_service is just an object, it can't have "priorities". The thread, which executing io_service::run(), can have some priority.
participants (2)
-
Gözde Bahar KOŞ
-
Igor R