fork()失败(1:不允许操作) [英] fork() failed (1: Operation not permitted)

查看:238
本文介绍了fork()失败(1:不允许操作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ios的新手。
我面临着许可问题。 fork()失败(1:不允许操作)

I'm new to ios. I'm facing a problem about permission. fork() failed (1: Operation not permitted)

我想在c中为ios构建一个开源库。
可以在ios上使用fork()函数吗?
如果可以的话,我该如何解决这个问题呢?

I want to build an open source library implemented in c for ios. Can "fork()" function be used on ios?? If It could, how can I solve that problem??

推荐答案

没有。每个iOS应用程序都是一个单独的过程您可以创建新线程,而不是新进程。

No. Every iOS application is a separate process. You can create new threads, not a new process.

另请参阅使用fork()将应用程序移植到pthread_create()

这篇关于fork()失败(1:不允许操作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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