After the previous test, Process a and Process Z diverge, each taking a separate code path, as if both came to a fork in the road and each took a distinct branch.
在上次测试之后,进程a和进程z会出现差异,每个进程会采用单独的代码路径,就像路上出现岔道,每一个都会走上不同的分枝。
Likewise, if the program communicates with the SPU code using mailbox access, it needs to create a new thread, for example, by calling fork or pthread_create.
同理,如果这个程序与使用邮箱访问的SPU代码进行通信,它就需要创建一个新的线程,例如通过调用fork或pthread_create。
In Listing 3, the PIDs are printed out at each step, and the code checks the return value from fork to determine which process is the parent and which is the child.
清单3在每个步骤打印出pid,并且该代码检查从fork返回的值来确定哪个进程是父进程,哪个进程是子进程。
Maintaining a fork of a large code base is an enormous pain because it becomes difficult to incorporate upstream improvements as the fork diverges.
维持一个庞大代码库下的分支是件非常痛苦的事,因为下游分支自立门户后要吸收上游的改进就十分困难。
With the return value of fork in mind, the code can now check to see if it is the parent or child process and act accordingly.
考虑到fork的返回值,现在该代码可以检查确定它是父进程还是子进程,并进行相应的操作。
The computation part of the code should seem familiar if you've worked at all with fork().
如果您使用过 fork(),那么应该熟悉代码的计算部分。
This tool allows you to write code your browser, fork and modify any code, fix bugs and add features and also ask the community about your problems.
这个工具允许你写代码的浏览器,叉和修改任何代码,修正错误和增加功能,并询问您问题的社区。
Bike generally installed in the front wheel spokes on the sensor magnet, the sensor on the fork, fork winds down on the cable, put the cross above code table seat and seat above code table.
自行车码表一般由安装于前轮幅条上的感应磁铁、前叉上的感应器、顺着前叉蜿蜒而上的连接线、置于把横上面的码表座和座上面的码表。
Bike generally installed in the front wheel spokes on the sensor magnet, the sensor on the fork, fork winds down on the cable, put the cross above code table seat and seat above code table.
自行车码表一般由安装于前轮幅条上的感应磁铁、前叉上的感应器、顺着前叉蜿蜒而上的连接线、置于把横上面的码表座和座上面的码表。
应用推荐