我在哪里可以了解C的多线程 [英] Where can I learn about Multithreading for C

查看:50
本文介绍了我在哪里可以了解C的多线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我可以在互联网上了解使用

函数的多线程技术,如WaitForSingleObject(),CreateThread(),CreateMutex()

等,而不是pthreads。


谢谢,


巴里。

解决方案

bg***@yahoo.com 写道:



我可以在互联网上学习使用WaitForSingleObject(),CreateThread(),CreateMutex()<等函数的C多线程等等,而不是pthreads。




这是偏离主题的。


< ot>

可能是MSDN。 pthreads界面在POSIX

标准中描述,它们可在多个平台上使用,包括,我相信,Windows。你感兴趣的是Win32 API的一部分

,仅在Windows下可用。

< / ot>


如果您需要更多信息,请尝试一个专门处理您的

类请求的小组:

comp.programming.threads

com。 os.ms-windows.programmer.win32

-

Ioan - Ciprian Tandau

tandau _at_ freeshell _dot_ org(希望这还不算太晚了)

(......它仍然有效......)




b ... @ yahoo.com写道:



我可以在互联网上学习使用WaitForSingleObject等功能的多线程C语言),CreateThread(),CreateMutex()
等,而不是pthreads。




关闭该组的主题...


但是你自己并没有喜欢而不是pthreads。

仅在你的应用程序中使用Win32API调用on是一种将你自己锁定在Windows中的绝佳方法。


即使在Windows上,你也可以使用Cygwin来为你模拟pthreads。


坚持使用pthreads并正确处理。


Tom



b ... @ yahoo.com写道:



在互联网上我可以通过
函数了解C的多线程喜欢WaitForSingleObject(),CreateThread(),CreateMutex()
等,而不是pthreads。




关闭小组主题...


但是你自己并不喜欢而不是pthreads。

仅在你的应用程序中使用Win32API调用是一种可靠的锁定方法/>
自己进入Windows。


即使在Windows上你也可以使用Cygwin为你模拟pthreads。


所以坚持下去pthreads并正确地做事。


汤姆


Hi,

Where on the internet can I learn about Multithreading for C using
functions like WaitForSingleObject(), CreateThread(), CreateMutex()
etc, rather than pthreads.

Thanks,

Barry.

解决方案

bg***@yahoo.com writes:

Hi,

Where on the internet can I learn about Multithreading for C using
functions like WaitForSingleObject(), CreateThread(), CreateMutex()
etc, rather than pthreads.



This is off-topic here.

<ot>
Probably the MSDN. The pthreads interface is described in the POSIX
standard and they are available on multiple platforms including, I
believe, Windows. What you are interested in is part of the Win32 API
and available only under Windows.
</ot>

If you need more information try a group that''s specialized in your
kind of requests:
comp.programming.threads
com.os.ms-windows.programmer.win32

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it''s not too late)
(... and that it still works...)



b...@yahoo.com wrote:

Hi,

Where on the internet can I learn about Multithreading for C using
functions like WaitForSingleObject(), CreateThread(), CreateMutex()
etc, rather than pthreads.



Off topic for the group...

But you''re doing yourself no sort of favour of "rather than pthreads".
Using Win32API calls only in your application is a surefire way to lock
yourself into Windows.

Even on Windows you can use Cygwin to emulate pthreads for you.

So stick with pthreads and do things properly.

Tom



b...@yahoo.com wrote:

Hi,

Where on the internet can I learn about Multithreading for C using
functions like WaitForSingleObject(), CreateThread(), CreateMutex()
etc, rather than pthreads.



Off topic for the group...

But you''re doing yourself no sort of favour of "rather than pthreads".
Using Win32API calls only in your application is a surefire way to lock
yourself into Windows.

Even on Windows you can use Cygwin to emulate pthreads for you.

So stick with pthreads and do things properly.

Tom


这篇关于我在哪里可以了解C的多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆