annotate example/HelloWorld/README @ 115:d9ea79aac04f draft

fix Makefile
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 13 Nov 2008 10:46:36 +0900
parents 028ffc9c0375
children 69e32bb76373
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
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 - 概要
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7 "Hello, World!!" を出力するプログラムです。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 タスク Hello が文字列を表示します。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 - 実行方法
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
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 -count 表示する "Hello, World!!" の数(つまり、タスク Hello の数)です。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 - 実行例 (-cpu は Cerium 標準のオプションです)
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
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 上の例では、Hello タスク 10 個を、
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
46 3 つの CPU に振り分けて実行しているので
115
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
47 表示が順になっていない -> 並列に実行されていることがわかります。