开发者

fork(), sleep(), and pipe(int *fd) in Mac OS X

I am taking a class called 'Operating Systems' and we are learning about these functions. I have a Mac and i want to know if these function work on Mac, or do I have to install linux. If开发者_JAVA百科 I can't do this on Mac, what linux distribution should I install? (There's so many, I don't know which one to get).


Your prototype for pipe() is wrong, but all three functions are part of POSIX. Since OS X is a POSIX operating system, it supports all three. Note that you will need to install Apple's developer tools in order to have access to a compiler and the appropriate headers and such in order to build software that uses them.


I just took Operating Systems, and since the course revolves around UNIX, if you were on Windows, I'd recommend installing Linux just for the sake of the course. Since you are on a mac, it shouldn't be too different. By the way, most distros have live versions, so you can just boot up Linux for an assignment or something, if you want. Any popular distro would do just fine.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜