由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 熟悉C++,向Windows 还是Linux 方向发展? thanks
相关主题
请教,call c++ shared lib in java via jniSemaphores in Linux (转载)
c++11 std::thread 和 openmp 那个额外开销少?谁给科普一下Linux里lib search怎么运作的?
Unix/Linux下的C++ coding 跟Windows下到底有多大不同? (转载)主力程序员离职后怎么办?
develop linux apps on Windows在图像算法领域,纯java没戏,用java和c++混合编程很恶心
同样的C++程序,Linux下比Windows下慢很多C++ Software Engineer 工作求内推(Boston)
pthread in cygwinboost的deadline_timer要多脑残才能整出来?
Linux thread和NPTL thread什么关系? (转载)求救
linux下面的程序间通信怎么样最快?我真不明白c++有什么难的
相关话题的讨论汇总
话题: windows话题: linux话题: c++话题: thread话题: os
进入Programming版参与讨论
1 (共1页)
b**********1
发帖数: 215
1
熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗?
thanks
b*******s
发帖数: 5216
2
linux

【在 b**********1 的大作中提到】
: 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗?
: thanks

N******K
发帖数: 10202
3
学会了螺丝刀用法之后 问: 用来拧十字螺丝 还是一字螺丝

【在 b**********1 的大作中提到】
: 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗?
: thanks

l*********s
发帖数: 5409
4
linux is a better environment to work with
p***o
发帖数: 1252
5
15年前学完MFC这是一个好问题 ... 现在还是算了吧

【在 b**********1 的大作中提到】
: 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗?
: thanks

d****i
发帖数: 4809
6
Are you going to write OS dependent code? If so, then better use C for that
since Linux and Windows have complete different API for system programming.
If not OS dependent, then most C++ libs, especially those from C++ STL and
boost libs are cross-platform which means code can run on both Windows and
Linux.

【在 b**********1 的大作中提到】
: 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗?
: thanks

g*********e
发帖数: 14401
7
只要涉及process handling IPC 肯定要写platform dependent code
thread的话勉强可以用各种pacakge统一
d****i
发帖数: 4809
8
C++ std::thread or boost::thread just wraps the underlying OS thread on
Win32 thread (Windows) and pthread (Linux), respectively. So it's still OS
dependent under the hood.

【在 g*********e 的大作中提到】
: 只要涉及process handling IPC 肯定要写platform dependent code
: thread的话勉强可以用各种pacakge统一

N******K
发帖数: 10202
9
绕开操作系统搞出一个thread 怎么搞?

【在 d****i 的大作中提到】
: C++ std::thread or boost::thread just wraps the underlying OS thread on
: Win32 thread (Windows) and pthread (Linux), respectively. So it's still OS
: dependent under the hood.

g*********e
发帖数: 14401
10

#ifdef WIN
windows thread
#else
linux thread
#endif
不过pthread的api应该都可以通吃

【在 N******K 的大作中提到】
: 绕开操作系统搞出一个thread 怎么搞?
k**********g
发帖数: 989
11

Use Intel TBB if at all possible. This is the strategy taken by OpenCV, and
it can multithread on Windows, Mac, Linux, Android, iOS
If on Windows, one can define a thin wrapper to switch TBB code to Microsoft
PPL.

【在 d****i 的大作中提到】
: C++ std::thread or boost::thread just wraps the underlying OS thread on
: Win32 thread (Windows) and pthread (Linux), respectively. So it's still OS
: dependent under the hood.

1 (共1页)
进入Programming版参与讨论
相关主题
我真不明白c++有什么难的同样的C++程序,Linux下比Windows下慢很多
pthread on windows?pthread in cygwin
Windows Thread APILinux thread和NPTL thread什么关系? (转载)
有啥比较好的multithreaded C++ project?linux下面的程序间通信怎么样最快?
请教,call c++ shared lib in java via jniSemaphores in Linux (转载)
c++11 std::thread 和 openmp 那个额外开销少?谁给科普一下Linux里lib search怎么运作的?
Unix/Linux下的C++ coding 跟Windows下到底有多大不同? (转载)主力程序员离职后怎么办?
develop linux apps on Windows在图像算法领域,纯java没戏,用java和c++混合编程很恶心
相关话题的讨论汇总
话题: windows话题: linux话题: c++话题: thread话题: os