タグ

processに関するtyruのブックマーク (29)

  • Runtime.exec()にてprocess.getInputStream().close()だけではだめ? - ひでっぷの技術メモ


    JavaProcessstreamclose()Too many open filesIOException streamProcess Runtime.exec()Armadillo-9GPIO ArmadilloC  printf close() /**
    Runtime.exec()にてprocess.getInputStream().close()だけではだめ? - ひでっぷの技術メモ
  • マルチスレッドのコンテキスト切り替えに伴うコスト - naoyaのはてなダイアリー


     Linux  Linux  fork pthread  FAQ   Linux 3(?)  Pthreads
    マルチスレッドのコンテキスト切り替えに伴うコスト - naoyaのはてなダイアリー
    tyru
    tyru 2015/03/03
    clone()システムコールおもしろい
  • fork()は失敗するんだぜ、覚えときな


    fork() can fail: this is importantfork() fork  forkmalloc fork0pid使  "-1"forkpid 
    tyru
    tyru 2014/08/22
    確か負値の場合は、マイナス取ったPIDの子プロセス全員に対してsignalを送るんだっけ。-1は1(init)の子プロセス全てだから全員虐殺。
  • プロセスをforkするときのこと - Hibariya


      waitOrphan Process  init tail Process.fork do File.open('orphan', 'a') do |f| loop do sleep 1 # pid f.puts Process.ppid f.flush end end end sleep 5 orphantail -f
  • How to get the process start date and time

    Initially a Linux command-line interface blog, it has evolved to cover increasingly more GUI app topics. Instead of just giving you information like some man page, I illustrate their usage in real-life scenarios. How can we determine when a running process was started? The venerable ps command deserves first consideration. Most Linux command-line users are familiar with either the standard UNIX no

    tyru
    tyru 2012/12/29
    プロセス開始時刻からの正確な経過時間が知りたい場合はps -eo etimeを見る
  • Working with Unix ProcessesをPerlで - $shibayu36->blog;


     Working with Unix ProcessesUnix調Perl(Ruby) () Chapter 2 : Introduction  Chapter 3 : Primer Unix kernelsystem call  manual man
  • 特定のユーザが持つプロセス全てにシグナルを送る - 元RX-7乗りの適当な日々


    killman pid  -1  sig  1 (init)  Man page of KILL  $ kill -9 -1(SIGKILL) ("-9""kill -l")  # sudo -u username kill -9 -1("username")便  KILL(1) KILL(2) LinuxHacks
    tyru
    tyru 2012/04/15
    killのpidに-1を指定した場合、呼び出し元のプロセスがシグナルを送る許可を持つ全てのプロセスに送られる / sudo -u hoge kill -9 -1" でユーザhogeのプロセスを全部殺せる
  • Panoramaは電気分解(Electrolysis)の夢を見るか? - Mozilla Flux


    MozillaFirefoxElectrolysisFirefox 4Products team bloggoals for multi-process firefox Firefox2WebUIWeb
    Panoramaは電気分解(Electrolysis)の夢を見るか? - Mozilla Flux
  • UNIX上でのC++ソフトウェア設計の定石 (3) - memologue


    3: fork fork*1fork  doit()  void* doit(void*) { static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_lock(&mutex); struct timespec ts = {10, 0}; nanoslee
    UNIX上でのC++ソフトウェア設計の定石 (3) - memologue
  • disownコマンド - Do You PHP はてブロ


     disownbash"%" 使 $ cat tmp.php <?php while (true) { sleep(10); file_put_contents('/tmp/tmp.php.log', date('YmdHis'). PHP_EOL, FILE_APPEND|FILE_TEXT); } $ php tmp.php & [1] 31993 $ jobs [1]+ Running php tmp.php & $ disown %1 $ jobs $ pstreeinitinit(1)atd(1819) : mingett
    disownコマンド - Do You PHP はてブロ
  • Linux の nice / renice コマンドを覚えた


    152015335Disk I/O    HDD  HDD  tar cvfz 使 CPU  HDD  rsync   shell 調 renice - 
    tyru
    tyru 2011/05/04
    今日初めてreniceを使ったんだ、父さん
  • 仮想デバイスドライバを利用したプロセス間通信について : tutorialog

    仮想デバイスドライバを利用したプロセス間通信について September 11, 2006 Posted by butcher in : C, Operating System , trackback 仮想デバイスドライバを利用したプロセス間通信について説明します。といってもよくわからないと思うので、ちゃんと説明します。 Unixでプロセス間通信というと、ソケットを使ったもの、パイプを使ったもの、共有メモリを使ったもの等がありますが、それぞれ長所・短所があると思います。 ものすごく簡単に言うと、 ソケットでは、 複数マシン間での通信が可能 通信処理のオーバーヘッドが大きい(コネクション開始・終了処理も含め) パイプでは、 ソケットより通信処理のオーバーヘッドが少ない 親子関係のプロセスに限定される 共有メモリでは、 シンプルで高速 書き込み・読み取りの同期をとるのが難しい 等が

  • 32bit プロセスは 64bit プロセスを見つけられない - Cube Lilac

    所用で「あるプロセスから別のプロセスを終了させるプログラム」を書いていました.終了させる部分の関数は以下のような感じ. #include <string> #include <vector> #include <windows.h> #include <tchar.h> #include <psapi.h> #pragma comment(lib, "psapi.lib") namespace process { std::size_t kill(const std::basic_string<TCHAR>& name) { std::size_t result = 0; std::vector<DWORD> processes(256, 0); DWORD procbytes = 0; while (1) { if (!::EnumProcesses(reinterpret_cast<D

    32bit プロセスは 64bit プロセスを見つけられない - Cube Lilac
  • Posix共有メモリ - s-kita’s blog


    Posix.12 1.(memory-mapped files): openmmap (shared memory objects): shm_openIPCmmap shm_openshm_unlinkPosix使2 1.shm_open 2.mmap shm_open #include <sys/mm
    Posix共有メモリ - s-kita’s blog
  • それ Proc::Guard 0.04 でできるよっていう話 - tokuhirom's blog


    http://d.hatena.ne.jp/antipop/20101130/1291112500 Proc::Guard $worker_guard  Scope::Guard  AnyEvent  guard  kill wait proc_guard(sub { })  use strict; use warnings; use Test::TCP; use Test::More; use Proc::Guard 0.04 qw/proc_guard/; use Gearman::Worker; use Gearman::Client; tes
  • nohup と disown | 変なヤバいもんログ


    Posted on 20061123 Posted by   Posted in Development Tags: Linux  nohup  disown nohup  nohup  disown  Ctrl + z  disown %[] Screen便(´ω) 90000MySQLJoin1DNA
    nohup と disown | 変なヤバいもんログ
    tyru
    tyru 2010/11/19
    disownしらんかった
  • 親プロセスが終了するとそのプロセスから呼ばれた子プロセスも停止する?


       HTML  PDF    PDF My    "kill -9"(sleep)(ps) sleep(init?) WEB調   init
    親プロセスが終了するとそのプロセスから呼ばれた子プロセスも停止する?
  • All About Spawn

    Blogged by Ujihisa. Standard methods of programming and thoughts including Clojure, Vim, LLVM, Haskell, Ruby and Mathematics written by a Japanese programmer. github/ujihisa Spawn = Fork + Exec, but works also on platforms which don't support fork. The usage of spawn is often said to be cryptic. Here I'll describe common cases. system('ls') pid = spawn(['ls', 'ls']) Process.wait(pid) system('ls .'

  • 日付と時刻のプロパティ起動

    tyru
    tyru 2010/06/26
    rundll32.exe
  • CreateProcess関数を使ってメモ帳を起動したいのですが、PROCESS_INFORMATIONpi;STARTUPI... - Yahoo!知恵袋

    CreateProcess関数を使ってメモ帳を起動したいのですが、 PROCESS_INFORMATION pi; STARTUPINFO si; CreateProcess関数を使ってメモ帳を起動したいのですが、 PROCESS_INFORMATION pi; STARTUPINFO si; CreateProcess関数を使ってメモ帳を起動したいのですが、 PROCESS_INFORMATION pi; STARTUPINFO si; ZeroMemory(&si,sizeof(si)); si.cb=sizeof(si); CreateProcess(NULL,(LPTSTR)"C:\\Documents and Settings\\Administrator\\My Documents\\text.txt",NULL,NULL,FALSE,NORMAL_PRIORITY_CLASS

    CreateProcess関数を使ってメモ帳を起動したいのですが、PROCESS_INFORMATIONpi;STARTUPI... - Yahoo!知恵袋