★The fork/join framework is an implementation of the ExecutorService interface that helps you take advantage of multiple processors. It is designed for work that can be broken into smaller pieces recursively. The goal is to use all the available processing power to enhance the performance of your application.
As with any ExecutorService implementation, the fork/join framework distributes tasks to worker threads in a thread pool. The fork/join framework is distinct because it uses a work-stealing algorithm. Worker threads that run out of things...
2014/06/27
Why reduce the size of the Java JVM thread stack
★あれ、threadStack is out of heap...
When Java creates a new thread, it pre-allocates a fixed-size block of memory for that thread's stack. By reducing the size of that memory block, you can avoid running out of memory, especially if you have lots of threads - the memory saving is the reduction in stack size times the number of threads.
The downside of doing this is that you increase the chance of a Stack Overflow error.
Note that the thread stacks are created outside of the JVM heap, so even if there's plenty of memory available in the heap, you...
redis 試し
・can write to db automatically
・can store thing with four structures not only plain string key
=->redis can used to slove a wider range of problems
STINGS、LIST、SET、HASH、ZSET(順番あるET)
・publish/Subscribe 機能?raid,master/slave機能
・in-memory databases! write to hardDisk
Depending on how careful you want to be with your
data, append-only writing can be configured to never sync, sync once per second, or
sync at the completion of every operation.
・for most
databases, inserting rows is a very fast operation (inserts write to the end of an on-disk
file,...
ansible-playbook option
--list-tasks==>タスクの一覧
--check===>オプションを指定することで変更は行わないが、実際に実行するとこうなるという出力がされます
--step ==>one step at a time
--private-key ==>鍵ファイルを指定して、そしてpasswordの指定がなくなる
--list-hosts
--skip-tags
--syntax-check ==->chechk the fiels and do nothing other
-t tags 指定するタグだけを実...
2014/06/25
nginx ssl windows proxy
nginxをインストールする
=ー>nginx for window
nginx.exeを実行する
==>nginx -t **.conf 設定ファイルをテストする
http://localhost:ポート==>nginxのページが表示される=>OK
OpenSSlのwindows版をinstallする
OpenSSLをPATHに設定する
証明書を作成する
openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
cp server.key server.key.orig
openssl rsa -in server.key.orig -out server.key
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
==>
server.crt server.csr server.key server.key.orig
nginxの設定ファイルを修正する
# HTTPS server
...
プリントヘッドの電気接点のクリーニング
綿棒で、下から上に電気接触部とノズル周辺部を拭きます。
綿棒にインクが付着しなくなるまでクリーニングを行ってください。
必要に応じて新しい綿棒に取り替えます。
プリンター本体の電気接触部のクリーニングを行います。
安全のため、プリンターの電源コードを外します。
電気接触部を下から上へ綿棒で拭いてクリーニングします。
必要に応じて新しい綿棒に取り替えます。綿棒にインク
が付着しなくなるまでクリーニングを行います。...
2014/06/24
ファンクションパラメータの哲学
Normal
0
0
2
false
false
false
EN-US
JA
X-NONE
...
java オブジェクト指向 デメリット
Normal
0
0
2
false
false
false
EN-US
JA
X-NONE
...