Project

General

Profile

Actions

Bug #7560

closed

Process.kill incurs 100ms cost when threads exist

Added by tmm1 (Aman Karmani) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-12-14 trunk 38379) [x86_64-darwin12.2.0]
Backport:
[ruby-core:50897]

Description

% ruby -rbenchmark -e' puts Benchmark.measure{ Process.kill(0, Process.pid) } '
0.000000 0.000000 0.000000 ( 0.000011)

% ruby -rbenchmark -e' Thread.new{sleep}; puts Benchmark.measure{ Process.kill(0, Process.pid) } '
0.000000 0.000000 0.000000 ( 0.101127)


Files

process_kill.patch (233 Bytes) process_kill.patch tmm1 (Aman Karmani), 12/14/2012 10:22 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0