Author: smeal

How to check how many threads does process have?

Just use -L switch for ps 😉

smeal@smeal:~$ ps -efL|grep -i sql
root 4601 1 4601 0 1 12:35 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 4643 4601 4643 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4646 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4647 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4648 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4649 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4661 0 16 12:35 ? 00:00:04 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4662 0 16 12:35 ? 00:00:08 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4663 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4664 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4667 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 4721 0 16 12:35 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 11228 0 16 13:30 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 11473 0 16 13:30 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 15430 0 16 14:17 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 15431 0 16 14:17 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
mysql 4643 4601 15432 0 16 14:17 ? 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock

nedopovedane slova :)))

Poručík Rževskij tancuje na plese s Natašou Rostovovou. Nataša mu navrhne:
– Poručík, poďme sa hrať na nedopovedané slová.
– Dobre. A to sa ako hrá? – súhlasí Rževskij.
– Napríklad ja poviem “Poručík, pobozkajte mi R… a vy sa musíte dovtípiť, že mi máte pobozkať ruku. Chápete?
– Chápem!
– Tak teraz ste na rade vy, poručík. Čo mi poviete?
– Nataša, chyťte ma za kokot oboma R…

Eutanázie

Včera večer jsme s mojí ženou vedli trochu hlubší rozhovor o různých
životních situacích.

Přišla řeč na eutanázii.

K tomuto citlivému tématu o volbě mezi životem a smrtí jsem poznamenal :

– Nechci aby jsi mě nechala žít v takovém stavu, kdy bych byl závislý na
přístrojích a živený tekutou stravou z nějaké flašky. Kdybys mě někdy takhle viděla, vypni ty mašiny co mě drží naživu.

– Ona vstala, vypla televizi, počítač i ledničku a vylila mi pivo do
Záchodu.

.. No není blbá !??