ant中java任务中fork属性是什么意思呀?

thankyou 2004-07-22 09:25:59
...全文
788 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
thankyou 2004-07-29
  • 打赏
  • 举报
回复
为什么需要开一个新的进程?与直接在ant进程中有什么区别?
registered 2004-07-29
  • 打赏
  • 举报
回复
开一个新的 java.exe 进程
或者一个新的 javac.exe 进程
或者...
thankyou 2004-07-28
  • 打赏
  • 举报
回复
ding
thankyou 2004-07-25
  • 打赏
  • 举报
回复
起一个新线程有什么用了?还是不太明白
congliu 2004-07-23
  • 打赏
  • 举报
回复
分出个新线程
pleonheart 2004-07-23
  • 打赏
  • 举报
回复
起个新的线程,去做job
thankyou 2004-07-23
  • 打赏
  • 举报
回复
ding
thankyou 2004-07-22
  • 打赏
  • 举报
回复
谁能说明白一点吗?
thankyou 2004-07-22
  • 打赏
  • 举报
回复
不明白
tsingien 2004-07-22
  • 打赏
  • 举报
回复
fork()在linux,c里面是开启新的进程:
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>

pid_t fork(void);

DESCRIPTION
fork creates a child process that differs from the parent process only
in its PID and PPID, and in the fact that resource utilizations are set
to 0. File locks and pending signals are not inherited.

Under Linux, fork is implemented using copy-on-write pages, so the only
penalty incurred by fork is the time and memory required to duplicate
the parent's page tables, and to create a unique task structure for the
child.

RETURN VALUE
On success, the PID of the child process is returned in the parent's
thread of execution, and a 0 is returned in the child's thread of exe-
cution. On failure, a -1 will be returned in the parent's context, no
child process will be created, and errno will be set appropriately.

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧