亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: zwfha
打印 上一主題 下一主題

網(wǎng)中人來解釋下 :() { :|:& }; : # <--- 這個(gè)別亂跑!好奇會(huì)死人的! [復(fù)制鏈接]

論壇徽章:
0
11 [報(bào)告]
發(fā)表于 2007-04-25 23:31 |只看該作者
原帖由 doctorjxd 于 2007-4-25 15:09 發(fā)表
還是FreeBSD穩(wěn)定。
運(yùn)行這個(gè)語句之后,內(nèi)存全部用完,還用了100多Mswap空間。
接著提示Pipe call failed: Bad file descriptor
Cannot fork: Resource temporarily unavailable

然后又提示kern.ipc.maxpipe ...



還是WINDOWS穩(wěn)定,跑了一下啥問題也沒有

論壇徽章:
7
榮譽(yù)會(huì)員
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-06-05 06:20:0015-16賽季CBA聯(lián)賽之吉林
日期:2016-06-20 08:24:0515-16賽季CBA聯(lián)賽之四川
日期:2016-08-18 15:02:02
12 [報(bào)告]
發(fā)表于 2007-04-26 00:34 |只看該作者
原帖由 tksin 于 2007-4-25 16:13 發(fā)表
在Mac OS X 上的Darwin也很穩(wěn)定的說, 用戶內(nèi)存不受影響,用system monitor看幾乎沒有變化。
只有一句 : fork: Resource temporarily unavailable。

bash中有限制資源占用和最大內(nèi)存及maximun number of pro ...



恩,類bsd風(fēng)格的系統(tǒng)都可以做到。

論壇徽章:
0
13 [報(bào)告]
發(fā)表于 2007-04-26 09:05 |只看該作者
好奇會(huì)死人的......
在論壇上已經(jīng)看到好幾個(gè)這樣的貼子了.

論壇徽章:
0
14 [報(bào)告]
發(fā)表于 2007-04-26 16:19 |只看該作者
這個(gè)代碼這么強(qiáng)啊,我都不敢跑了~~~~~~~~~~~~~

論壇徽章:
0
15 [報(bào)告]
發(fā)表于 2007-04-26 17:02 |只看該作者
用WINDOWS下的cygwin試了一下,也死機(jī)了。
不知道HP-UX如何,回公司試一下

論壇徽章:
0
16 [報(bào)告]
發(fā)表于 2007-04-26 17:15 |只看該作者

回復(fù) 1樓 zwfha 的帖子

這條語句大家能解釋一下嗎

論壇徽章:
1
榮譽(yù)版主
日期:2011-11-23 16:44:17
17 [報(bào)告]
發(fā)表于 2007-04-27 01:28 |只看該作者

論壇徽章:
0
18 [報(bào)告]
發(fā)表于 2007-04-27 09:09 |只看該作者
本來想找下netman帖的帖子, 結(jié)果我灌水太多了...>_<

論壇徽章:
8
摩羯座
日期:2014-11-26 18:59:452015亞冠之浦和紅鉆
日期:2015-06-23 19:10:532015亞冠之西悉尼流浪者
日期:2015-08-21 08:40:5815-16賽季CBA聯(lián)賽之山東
日期:2016-01-31 18:25:0515-16賽季CBA聯(lián)賽之四川
日期:2016-02-16 16:08:30程序設(shè)計(jì)版塊每日發(fā)帖之星
日期:2016-06-29 06:20:002017金雞報(bào)曉
日期:2017-01-10 15:19:5615-16賽季CBA聯(lián)賽之佛山
日期:2017-02-27 20:41:19
19 [報(bào)告]
發(fā)表于 2007-04-27 12:11 |只看該作者
為啥不google下fork bomb?這玩意兒打有狗那年就有了

  1. fork bomb

  2. The fork bomb is a form of denial of service attack against a computer system that uses the fork function. It relies on the assumption that the number of programs and processes which may be simultaneously executed on a computer has a limit.

  3. A fork bomb works by creating a large number of processes very quickly in order to saturate the available space in the list of processes kept by the computer's operating system. If the process table becomes saturated, no new programs may be started until another terminates. Even if that happens, it is not likely that a useful program may be started since the instances of the bomb program are each waiting to take that slot themselves.

  4. Not only do fork bombs use space in the process table, they each use processor time and memory. As a result of this, the system and existing programs slow down and become much more difficult (slow), or even impossible, to use.


  5. Canonical forkbombs include this one on Unix (using the Bash shell) (Explanation):

  6. :(){ :|:& };:

  7. Or in Microsoft Windows using a batch file:

  8. :s
  9. start %0
  10. goto s

  11. Or using Perl:

  12. (forking using the Perl interpreter):
  13. perl -e "fork while fork" &

  14. Or in C:

  15. #include <unistd.h>

  16. int main(void)
  17. {
  18.   while(1) {
  19.     fork();
  20.   }
  21.   return 0;
  22. }

  23. Difficulty of cure

  24. Once a successful fork bomb has been activated in a system it may not be possible to resume normal operation without rebooting, as the only solution to a fork bomb is to destroy all instances of it. Trying to use a program to kill the rogue processes normally requires another process be created, which may not be possible if there are no empty slots in the process table, or space in memory structures.

  25. Prevention

  26. One way to prevent a fork bomb is to limit the number of processes that a single user may own. When a process tries to create another process and the owner of that process already owns more than the maximum, the creation fails. The maximum should be low enough that if all the users who might simultaneously bomb a system do, there are still enough resources left to avoid disaster. Note that an accidental fork bomb is highly unlikely to involve more than one user.

  27. Unix-type systems typically have such a limit, controlled by a ulimit shell command. With a Linux kernel, it is the RLIMIT_NPROC rlimit of a process. If a process tries to perform a fork and the user that owns that process already owns more than RLIMIT_NPROC processes, it fails.

  28. Note that simply limiting the number of processes a process may create does not prevent a fork bomb, because each process that the fork bomb creates also creates processes. A distributive resource allocation system in which a process' resources are a share of its parents resources would work, but distributive resource systems are not in common use.

  29. Another solution involves the detection of fork bombs by the operating system, which is not widely practiced although has been implemented in the form of a kernel module for the Linux kernel [1].

  30. Further challenges

  31. Even with the above precautions, fork bombs can still have disastrous effects on a system. For example, if a server has 24 CPUs and allows ordinary users to have up to 100 processes, a fork bomb can still saturate all 24 CPUs even after it can no longer multiply. This can make the system completely unresponsive, to the point where an admin cannot log in to fix the problem.

  32. This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors
復(fù)制代碼

論壇徽章:
0
20 [報(bào)告]
發(fā)表于 2007-04-27 12:16 |只看該作者
蔥白下waker....
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP