annotate example/HelloWorld/README @ 839:1001c4bea1a0 draft

if unnecessary
author Yutaka_Kinjyo
date Fri, 28 May 2010 03:24:52 +0900
parents 69e32bb76373
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 /*
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 * $Id: README,v 1.5 2008/11/01 02:37:12 gongo Exp $
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4
426
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
5 - 概要
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6
426
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
7 "Hello, World!!" を出力するプログラムです。
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
8 タスク Hello が文字列を表示します。
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9
426
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
10 - 実行方法
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 % ./hello [-count COUNT]
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13
426
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
14 -count 表示する "Hello, World!!" の数(つまり、タスク Hello の数)です。
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15
426
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
16 - 実行例 (-cpu は Cerium 標準のオプションです)
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 % ./hello
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 [0] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 % ./hello -count 10
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 [0] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 [1] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 [2] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25 [3] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26 [4] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
27 [5] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28 [6] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 [7] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 [8] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
31 [9] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33 % ./hello -count 10 -cpu 3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
34 [0] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 [2] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 [3] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
37 [5] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
38 [6] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39 [8] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40 [9] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41 [1] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
42 [4] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
43 [7] Hello, World!!
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44
426
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
45 上の例では、Hello タスク 10 個を、
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
46 3 つの CPU に振り分けて実行しているので
69e32bb76373 minor fix.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 115
diff changeset
47 表示が順になっていない -> 並列に実行されていることがわかります。