There are many libraries and APIs (e.g. Qt) that seem to be intentionally designed to be non-thread safe. What is the motivation for such a design?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s easier. Its really difficult to make a non trivial library thread safe without loosing
Since many developers value these things pretty high they often decide to not care about multi threading.
For GUI libraries sanity seems to be a major concern, since you get into really complex situations when you don’t stick to a single thread for your GUI code.