开发者

Multi threading for my MFC C++ .dll

开发者 https://www.devze.com 2023-04-05 14:31 出处:网络
Currently I am accessing my MFC C++ dll using my python script and everything works well so far. My next step is to continuously access my .dll and carry on various operations with it simultaneously f

Currently I am accessing my MFC C++ dll using my python script and everything works well so far. My next step is to continuously access my .dll and carry on various operations with it simultaneously from which I feel "Multi-threading" is a very good option. Could you guys suggest me any good links to learn on multi-th开发者_如何学Creading and implement in my application?

Thanks in advance.


On which side of things are you interested in multi-threading, Python or MFC? If Python, consider multi-process, because of the Python GIL issue.

http://www.dabeaz.com/python/UnderstandingGIL.pdf

http://wiki.python.org/moin/GlobalInterpreterLock

If windows, I can help you a little bit from memory. If you tell more, we can help you better.

[Edit] If this is an MFC question, you might want to add a tag.


I am guessing this tutorial would of great help to you considering what you are planning to do. Additionally, you can look into ctypes for carrying out the operations the way you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消