ñ°Ì·Ï †
| ¥¨¥¯¥µ | exsa- | E | 10^18 |
* | ¥Ú¥¿ | peta- | P | 10^15 |
* | ¥Æ¥é | tera- | T | 10^12 |
* | ¥®¥¬ | giga- | G | 10^9 |
* | ¥á¥¬ | mega- | M | 10^6 |
* | ¥¥í | kilo- | k | 10^3 |
| ¥Ø¥¯¥È | hecto- | h | 10^2 |
| ¥Ç¥« | deca- | da | 10^1 |
| | | | 10^0 |
| ¥Ç¥· | deci- | d | 10^-1 |
| ¥»¥ó¥Á | centi- | c | 10^-2 |
* | ¥ß¥ê | milli- | m | 10^-3 |
* | ¥Þ¥¤¥¯¥í | micro- | ¦Ì | 10^-6 |
* | ¥Ê¥Î | nano- | n | 10^-9 |
| ¥Ô¥³ | pico- | p | 10^-12 |
| ¥Õ¥§¥à¥È | femto- | f | 10^-15 |
| ¥¢¥È | atto- | a | 10^-18 |
¢¨ * ¡Ä ¥½¥Õ¥È¥¦¥§¥¢¤Ë´Ø·¸¤¢¤ê¤½¤¦¤Êñ°Ì
2¿Ê¿ô †
MSB/LSB †
MSB LSB
¢ ¢
0001 0010 0011 0100 0101 0110 0111 1000
- Most Significat Bit
- Least Significant Bit
Little Endian/Big Endian †
0x12345678
- Little Endian(IA32)
0x78 0x56 0x34 0x12
- Big Endian(MC68000,PDP10,IBM360,SPARC)
0x12 0x34 0x56 0x78
- Middle Endian(PDP11,VAX)
0x34 0x12 0x78 0x56
- ¸½¹Ô¤Î¥×¥í¥»¥Ã¥µ¤Î¤Û¤È¤ó¤É¤Ï¡¢Endian¤òÀÚ¤êÂؤ¨¤ë¤³¤È¤¬½ÐÍè¤ë¡£
- ARM, PPC, Alpha, SPARC V9, MIPS, PA-RISC, IA64
Êä¿ô †
- N¿Ê¿ô¤ÎN¤ÎÊä¿ô
12345678(10¿Ê) ¤Î 10¤ÎÊä¿ô = 87654322
- ·«¤ê¾å¤¬¤ê¤¬µ¯¤¤ëºÇ¾®¤Î¿ô
- N¿Ê¿ô¤Î(N-1)¤ÎÊä¿ô
12345678(10¿Ê) ¤Î 9¤ÎÊä¿ô = 87654321
- ·«¤ê¾å¤¬¤ê¤Îµ¯¤¤Ê¤¤ºÇÂç¤Î¿ô
- (2¿Ê¿ô¤Î)2¤ÎÊä¿ô
-128(10000000B)
127(01111111B) + -127(10000001B) = 0(00000000B)
126(01111110B) + -126(10000010B) = 0(00000000B)
...
1(00000001B) + -1(11111111B) = 0(00000000B)
0(00000000B)
- ÀäÂÐÃͤ¬Æ±¤¸¿ô¤ò¤·¹ç¤ï¤»¤ë¤È¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤·¤Æ0¤Ë¤Ê¤ë
- MSB = 1 : Éé¿ô
- MSB = 0 : Àµ¿ô
- (2¿Ê¿ô¤Î)1¤ÎÊä¿ô
127(01111111B) + -127(10000000B) = 0(11111111B)
126(01111110B) + -126(10000001B) = 0(11111111B)
...
1(00000001B) + -1(11111110B) = 0(11111111B)
0(00000000B) + = 0(11111111B)
- ÀäÂÐÃͤ¬Æ±¤¸¿ô¤ò¤·¹ç¤ï¤»¤ë¤È¡¢Á´¤Æ¤Î¥Ó¥Ã¥È¤¬1¤Ë¤Ê¤ë
- 0¤Îɽ¸½ÊýË¡¤¬ÆóÄ̤ꤢ¤ë( 0 = 00000000B = 11111111B )
- MSB = 1 : Éé¿ô
- MSB = 0 : Àµ¿ô
ÉâÆ°¾®¿ôÅÀ †
- IEEE754
1 8 23
+-+--------+-----------------------+
|S| Exp | Fraction |
+-+--------+-----------------------+
31 30 23 22 0
- ÃÍ
value | Exp(»Ø¿ôÉô) | Fraction(²¾¿ôÉô) |
0 | 0 | 0 |
ÈóÀµµ¬¿ô | 0 | ¥¼¥í°Ê³° |
Àµµ¬¿ô | 1¡Á254 | Ǥ°Õ |
̵¸ÂÂç | 255 | 0 |
Èó¿ô | 255 | ¥¼¥í°Ê³° |
- Overflow / Underflow
Over +------------+ Under +------------+ Over
flow | | flow | | flow
-----+------------+---+---+------------+------->
-Vmax -Vmin 0 Vmin Vmax
- Overflow ±é»»·ë²Ì¤¬Â礤¹¤®¤Æ¤¢¤é¤ï¤»¤Ê¤¤
- Underflow ±é»»·ë²Ì¤¬¾®¤µ¤¹¤®¤Æ¤¢¤é¤ï¤»¤Ê¤¤
¸íº¹ †
´Ý¤á¸íº¹ | £±£°¿Ê¢ª£²¿Ê |
¾ðÊóÍî¤Á | ÃͤÎÂ礤¯°ã¤¦ÉâÆ°¾®¿ô¤Î±é»» |
¤±¤¿Íî¤Á | ͸ú·å¤Î°ã¤¦Ãͤα黻 |
ÂÇÀÚ¤ê¸íº¹ | Á²¶áË¡ |
ÏÀÍý±é»»¤È½¸¹ç †
ÏÀÍýµ¹æ¤È½¸¹çµ¹æ †
| ÏÀÍý±é»» | ½¸¹ç±é»» | ¥Ù¥ó¿Þ |
ÏÀÍýÏ AND | ¡¦ ¢Ê | ¢Á | A¢ÁB |
ÏÀÍýÀÑ OR | ¡Ü ¢Ë | ¢À | A¢ÀB |
ÈÝÄê NOT | ¡± ¢Ì | ¡± | ¢ÌA |
ÇÓ¾ŪÏÀÍýÎØ NOR / XOR | ⊕ ⊻ | ¢¤ (Âоݺ¹) | A¢¤B |
º¹ | | ¡Ý | A¡ÝB |
µÕ¡¦Î¢¡¦Âжö †
¾ðÊóÎÌ †
¾ðÊóÎ̤Ȥϡ© †
Ê¿¶Ñ¾ðÊóÎÌ †
n
H = ¦² I(Ji)*P(Ji)
i=0
ºÇÂçÊ¿¶Ñ¾ðÊóÎÌ †
À¸µ¯³ÎΨ¤ËÊФ꤬¤Ê¤¤¤È¤¡¢¤â¤Ã¤È¤âÊ¿¶Ñ¾ðÊóÎ̤¬Â礤¯¤Ê¤ë
n n
Hmax = ¦² I(Ji)*P(Ji) = ¦² P(Ji) * -log2( P(Ji) )
i=0 i=0
n
= ¦² (1/n) * -log2(1/n) = n * (1/n) * -log2(1/n)
i=0
= log2(n)
¤³¤ì¤Ï¡¢¾ì¹ç¤Î¿ô¤ò2¿Ê¿ô¤Çɽ¤·¤¿¤È¤¤Î¥Ó¥Ã¥È¿ô¤ÈƱ¤¸¡£
¥·¥ã¥Î¥ó¤Îˡ§(²óÀþÍÆÎÌ) †
µÕ¥Ý¡¼¥é¥ó¥ÉµË¡ †
- ·×»»¼°¤ÎɽµË¡¡£
4 3 * 2 + 5 -
--------
12 2 + 5 -
--------
14 5 -
--------
9
- º¸¤«¤é(ÃÍ,ÃÍ,±é»»»Ò)¤ÎÁȤò½èÍý¤·¤Æ¤¤¤±¤ÐÅú¤¨¤ò½Ð¤»¤ë¡£
- ·×»»µ¡¤Ç½èÍý¤·¤ä¤¹¤¤¡£
- ·×»»¼°¤òɽ¤¹ÌÚ¹½Â¤¤òºÆµ¯½èÍý¤·¤Æ¤¤¤ë¤È¸«¤Ê¤¹¤³¤È¤â½ÐÍè¤ë
int main(){
eval(root);
}
void eval( node ){
if( isTerminal( node ) ){
return node->value;
}
switch(node){
case "+":
node->value = eval(node->left) + eval(node->right);
break;
case "-":
node->value = eval(node->left) - eval(node->right);
break;
case "*":
node->value = eval(node->left) * eval(node->right);
break;
case "/":
node->value = eval(node->left) / eval(node->right);
break;
case "=":
node->left = eval(node->right);
break;
}
}
- °ìÈÌŪ¤Ê·×»»¼°¤òµÕ¥Ý¡¼¥é¥ó¥ÉµË¡¤Ë¤¹¤ëÊýË¡ ¢ª Í¥ÀèÅÙ¤ÎÄ㤤±é»»»Ò¤ò¸å¤í¤Ë¤È¤Ð¤·¤Æ¤¤¤¯
x = 4 * 3 + 2 - 5 |
x 4 * 3 + 2 - 5 | =
x 4 * 3 + 2 5 | - =
x 4 * 3 + 2 | 5 - =
x 4 * 3 2 | + 5 - =
x 4 * 3 | 2 + 5 - =
x 4 3 | * 2 + 5 - =
x 4 | 3 * 2 + 5 - =
x | 4 3 * 2 + 5 - =
| x 4 3 * 2 + 5 - =
- ÉáÄÌ¤Ï "x=" ¤Ï½Ð¤Æ¤³¤Ê¤¤¤ó¤À¤±¤É¡¦¡¦¡¦¾ðÊó½èÍý»î¸³Åª¤Ç¤Ï¤³¤¦¤¤¤¦°·¤¤¤Î¤è¤¦¤Ç¤¹( º¸¤«¤é½èÍý¤·¤Æ¤¤¤±¤ÐÅú¤¨¤¬½Ð¤ë¤È¤¤¤¦ËÜÍè¤Î¼ñ»Ý¤ËÈ¿¤¹¤ë¤¬¡¦¡¦¡¦)
¥°¥é¥Õ †
¥°¥é¥Õ¤Î¼ïÎà †
ñ½ã¥°¥é¥Õ | ¼«¸Ê¥ë¡¼¥×¡¢ÊÂÎóÊÕ¤¬¤Ê¤¤¥°¥é¥Õ | |
´°Á´¥°¥é¥Õ | ¤É¤Î£²ÅÀ¤âÊԤǷë¤Ð¤ì¤ë¥°¥é¥Õ | |
£²Éô¥°¥é¥Õ | ÅÀ¤òÆó¤Ä¤Î¥°¥ë¡¼¥×V1,V2¤Ëʬ¤±¤¿¤È¤¡¢Á´¤Æ¤ÎÊÕ¤ÎüÅÀ¤¬V1,V2¤Ë°¤¹¤ë¥°¥é¥Õ | |
¥ª¥¤¥é¡¼¥°¥é¥Õ | Á´¤Æ¤ÎÊÕ¤ò°ìÅÙÄ̤äưìÉ®½ñ¤½ÐÍè¤ë¥°¥é¥Õ | |
¥Ï¥ß¥ë¥È¥ó¥°¥é¥Õ | Á´¤Æ¤ÎÅÀ¤ò°ìÅÙÄ̤äưìÉ®½ñ¤½ÐÍè¤ë¥°¥é¥Õ | |
ÀµÂ§¥°¥é¥Õ | ³ÆÅÀ¤Î²Á¿ô¤¬Åù¤·¤¤¥°¥é¥Õ | |
¥À¥¤¥¯¥¹¥È¥éË¡ †
- ¥¹¥¿¡¼¥ÈÅÀS¤Îµ÷Î¥¤ò0¤Ç³ÎÄꤷ¡¢¤½¤Î¾¤ÎÅÀ¤Î²¾¤Îµ÷Î¥¤ò¡ç¤Ë¤¹¤ë
- ³ÎÄêÅÀ(S)¤ÎÎÙÀÜÅÀ(p,q,r)¤Î²¾¤Îµ÷Î¥¤ò·×»»¤¹¤ë
- ²¾¤Îµ÷Î¥¤¬°ìÈÖ¾®¤µ¤¤ÅÀ(q)¤¬¡¢ºÇû·ÐÏ©¤¬¸«¤Ä¤«¤Ã¤¿³ÎÄêÅÀ¤Ë¤Ê¤ë
- ¤Ê¤¼ q ¤¬³ÎÄêÅÀ¤Ë¤Ê¤ë¤Î¤«¡©
- ¤¿¤È¤¨¤Ð¡¢(S-p)¤ÎºÇûµ÷Î¥¤Ï¡¢Âç²ó¤ê¤¹¤ë¤³¤È¤Ë¤è¤ê 4 ¤è¤ê¾®¤µ¤¯¤Ê¤ë²ÄǽÀ¤¬¤¢¤ë¡£
- ¤³¤³¤Ç¡¢Âç²ó¤ê¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢¸½»þÅÀ¤Ç¤Î²¾¤Îµ÷Î¥¤¬ p ¤è¤ê¤â¾®¤µ¤¤ÅÀ¤òÄ̤ë¤Ï¤º
- ½¾¤Ã¤Æ¡¢¤¿¤È¤¨(S-p)¤ÎºÇûµ÷Î¥¤¬ 4 ¤è¤ê¾®¤µ¤¯¤Ê¤Ã¤¿¤È¤·¤Æ¤â¡¢¸½»þÅÀ¤Ç¤Î²¾¤Îµ÷Î¥¤¬ºÇ¾®¤Î 1 ¤ò²¼²ó¤ë¤³¤È¤Ï¤Ê¤¤
- ³ÎÄêÅÀ(S,q)¤ÎÎÙÀÜÅÀ(p,r,G)¤Î²¾¤Îµ÷Î¥¤ò·×»»¤¹¤ë
- p¤¬³ÎÄêÅÀ¤È¤Ê¤ë
- r¤¬³ÎÄêÅÀ¤È¤Ê¤ë
- G¤¬³ÎÄêÅÀ¤È¤Ê¤ë
- ·ë¶É S-q-p-G ¤¬ºÇû·ÐÏ©¤Ç¡¢¤½¤Îµ÷Î¥¤Ï6¤Ç¤¢¤ë¤³¤È¤¬Ê¬¤«¤Ã¤¿
¥Þ¥ë¥³¥Õ²áÄø †
- º£Æü¤ÎÅ·µ¤¤ÈÌÀÆü¤ÎÅ·µ¤¤ÎÁê´Ø¤¬Ê¬¤«¤Ã¤¿¤È¤
- º£Æü¤ÎÅ·µ¤¤ÈÌÀ¸åÆü¤ÎÅ·µ¤¤ÎÁê´Ø¤Ï¡©
- º£Æü¤ÎÅ·µ¤¤ÈÌÀÆü¤ÎÅ·µ¤¤ÎÁê´Ø¤ò¹ÔÎó¤Çɽ¤¹
| ÌÀÆü |
À²¤ì | ÆÞ¤ê | ±« |
º£Æü | À²¤ì | 0.50 | 0.30 | 0.20 |
ÆÞ¤ê | 0.40 | 0.20 | 0.40 |
±« | 0.30 | 0.30 | 0.40 |
| 0.50 0.30 0.20 |
M = | 0.40 0.20 0.40 |
| 0.30 0.30 0.40 |
- º£Æü¤ÎÅ·µ¤¤ÈÌÀ¸åÆü¤ÎÅ·µ¤¤ÎÁê´Ø = M * M
| 0.50 0.30 0.20 | | 0.50 0.30 0.20 | | 0.43 0.27 0.30 |
M * M = | 0.40 0.20 0.40 | | 0.40 0.20 0.40 | = | 0.40 0.28 0.32 |
| 0.30 0.30 0.40 | | 0.30 0.30 0.40 | | 0.39 0.27 0.34 |
±£¤ì¥Þ¥ë¥³¥Õ¥â¥Ç¥ë †
- ¥·¥¹¥Æ¥à¤¬¡¢¥Ñ¥é¥á¡¼¥¿ÉÔÌÀ¤Î¥Þ¥ë¥³¥Õ²áÄø¤Ç¤¢¤ë¤È²¾Äꤷ¤Æ¡¢¼Â¸³¤ä´Ñ¬·ë²Ì¤«¤é¥Ñ¥é¥á¡¼¥¿¤òµá¤á¤ë¥·¥¹¥Æ¥àʬÀÏË¡
- ·ÁÂÖÁDzòÀϤʤÉ(̾»ì¤Î¼¡¤ÏÆ°»ì¤¬Íè¤ä¤¹¤¤¤Ê¤É)
³ÎΨ¡¦Åý·× †
ÂåɽÃÍ †
- Ê¿¶ÑÃÍ
- Ãæ±ûÃÍ(Median)
- ¥Ç¡¼¥¿¤ò¾º½ç¤Ë¥½¡¼¥È¤·¤¿¤È¤¤ÎÃæ±û¤ËÍè¤ëÃÍ
- ¥Ç¡¼¥¿¿ô¤¬ n(´ñ¿ô) ¤Î¤È¤¡¢(n+1)/2 ÈÖÌܤΥǡ¼¥¿
- ¥Ç¡¼¥¿¿ô¤¬ n(¶ö¿ô) ¤Î¤È¤¡¢n/2 ÈÖÌܤΥǡ¼¥¿ ¤È n/2+1 ÈÖÌܤΥǡ¼¥¿¤ÎÊ¿¶Ñ
- ºÇÉÑÃÍ(Mode)
ʬ»¶¡¦É¸½àÊк¹¡¦É¸½à²½¥¹¥³¥¢ †
- ʬ»¶(Ê¿¶ÑÃͤȤκ¹¤ÎÊ¿¶Ñ¤ÎÆó¾è)
- ɸ½àÊк¹(Ê¿¶ÑÃͤȤκ¹¤ÎÊ¿¶Ñ)
- ɸ½à²½¥¹¥³¥¢
Àµµ¬Ê¬ÉÛ †
- Àµµ¬Ê¬ÉÛ
- ³ÎΨʬÉÛ
ɸ½à²½¥¹¥³¥¢ÈÏ°Ï | º¸¤ÎÈϰϤ˴ޤޤì¤ë¥Ç¡¼¥¿¤Î³ä¹ç |
¦Ì¡Þ1¦Ò | 68.3% |
¦Ì¡Þ2¦Ò | 95.4% |
¦Ì¡Þ3¦Ò | 99.7% |
¦Ì¡Þ4¦Ò | 99.994% |
- EXCEL´Ø¿ô
- NORMDIST(x,Ê¿¶Ñ,ɸ½àÊк¹,FALSE)
- ¥°¥é¥Õ¾å¤Î x ¤ËÂбþ¤¹¤ëÃͤòµá¤á¤ë
- NORMDIST(1,0,1,FALSE)=0.24
- NORMDIST(x,Ê¿¶Ñ,ɸ½àÊк¹,TRUE)
- ¥°¥é¥Õ¾å¤Î -¡ç ¡Á x ¤ÎÌÌÀѤòµá¤á¤ë¡£
- ½¾¤Ã¤Æ ¥Ç¡¼¥¿¤¬ ¤Î 1¦Ò ¶á˵¤Ë´Þ¤Þ¤ì¤ë³ÎΨ¤Ï
- NORMDIST(1,0,1,TRUE) - NORMDIST(-1,0,1,TRUE) = 0.841-0.158 = 0.683
- NORMINV(s,Ê¿¶Ñ,ɸ½àÊк¹)
- ¥°¥é¥Õ¾å¤Î -¡ç ¡Á x ¤ÎÌÌÀÑ ¤«¤é x ¤òµá¤á¤ë
- NORMINV(0.841,0,1) = 1
¥Í¥Ã¥È¥ï¡¼¥¯³¬ÁØ¥â¥Ç¥ë †
| ³¬ÁØ | TCP/IP | ÀܳÁõÃÖ |
7 | ¥¢¥×¥ê¥±¡¼¥·¥ç¥óÁØ | HTTP/FTP | ¥²¡¼¥È¥¦¥§¥¤ |
6 | ¥×¥ì¥¼¥ó¥Æ¡¼¥·¥ç¥óÁØ | ¡ß | ¡ß |
5 | ¥»¥Ã¥·¥ç¥óÁØ | ¡ß | ¡ß |
4 | ¥È¥é¥ó¥¹¥Ý¡¼¥ÈÁØ | TCP/UDP | ¡ß |
3 | ¥Í¥Ã¥È¥ï¡¼¥¯ÁØ | IP | ¥ë¡¼¥¿¡¼ |
2 | ¥Ç¡¼¥¿¥ê¥ó¥¯ÁØ | Ether | ¥Ö¥ê¥Ã¥¸ |
1 | ʪÍýÁØ | ¥±¡¼¥Ö¥ë | ¥ê¥Ô¡¼¥¿¡¼ |
IPv4 †
- Class A
8byte 24byte
+--------|--------+--------+--------+
|0 NET | HOST ID |
+--------|--------+--------+--------+
- Class B
16byte 16byte
+--------+--------|--------+--------+
|10 NETWORK ID | HOST ID |
+--------+--------|--------+--------+
- Class C
24byte 8byte
+--------+--------+--------|--------+
|110 NETWORK ID | HOST ID|
+--------+--------+--------|--------+
Routing †
- ÀÅŪ(static)
- ưŪ(dynamic)
- RIP(Routing Information Protocol)
¤¢¤ë¥µ¡¼¥Ð¡¼¤Þ¤Ç¤Î¥á¥È¥ê¥Ã¥¯¿ô(·Ðͳ¤¹¤ë¥ë¡¼¥¿¡¼¿ô)¤ò¥ë¡¼¥¿¡¼Æ±»Î¤¬30É䴤Ȥˤä¤ê¼è¤ê¤¹¤ë
- OSPF(Open Shortest Path First)
²óÀþ¾õÂÖ¤ò¹Íθ¤·¤ÆºÇû·ÐÏ©¤òÄ´¤Ù¤ë
SNMP †
Simple Network Management Protocol
- SNMP Agent ¤¬¡¢»þ·ÏÎó¥Ç¡¼¥¿¤ò MIB(Management Information Base)¤ËÃߤ¨¤ë
- ¤½¤ì¤È¤ÏÈóƱ´ü¤Ë¡¢SNMP Manager ¤¬¡¢Agent ¤ò¸Æ¤Ó½Ð¤·¤Æ MIB ¤Ë³ÊǼ¤µ¤ì¤Æ¤¤¤ë¥Ç¡¼¥¿¤ò¼èÆÀ¤·¡¢¥ì¥Ý¡¼¥È¤Ë¤Þ¤È¤á¤ë¤Ê¤ê·Ù¹ð¤ò½Ð¤·¤¿¤ê¤¹¤ë¡£
- ¤½¤Î¤È¤¤ä¤ê¼è¤ê¤µ¤ì¤ë¾ðÊó¤¬ PDU(Protocol Data Unit) ¤Ç¡¢
- UDP/IP¾å¤ÇÄÌ¿®¤¬¤Ê¤µ¤ì¤ë
ÄÌ¿®À©¸æ †
¾×ÆÍÀ©¸æ †
Êý¼° | ¼ÂÁõÎã | È÷¹Í |
CSMA/CD | Ether | ¤¹¤Ù¤Æ¤ÎüËö¤¬²óÀþ¤ò¶¦Í¡£²óÀþ¤¬»È¤ï¤ì¤Æ¤¤¤¿¤é¡¢¥é¥ó¥À¥àÉÃÂԤäƺƻî¹Ô |
¥È¡¼¥¯¥ó¥ê¥ó¥° | FDDI | üËö¤¬¥ê¥ó¥°¾õ¤Ë¤Ä¤Ê¤¬¤ê(A--B--C--D--E--(A))¡¢ÅÁ¸À¥²¡¼¥à¤Ç¥Ñ¥±¥Ã¥È¤ò¼õ¤±ÅϤ¹¡£Î٤οͤȤ·¤«Ï䵤ʤ¤(A¤ÏBE¤Î¤ß¤ÈľÀÜÄÌ¿®¤·¡¢C¤ÈÄÌ¿®¤·¤¿¤¤¤È¤¤Ë¤ÏB¤ËÃæ·Ñ¤·¤Æ¤â¤é¤¦¡Ë¤Î¤Ç¡¢¾×Æͤϵ¯¤¤Ê¤¤ |
TDMA | ·ÈÂÓÅÅÏà | ÄÌ¿®¤ò¹Ô¤¦Á°¤Ë¥¿¥¤¥à¥¹¥í¥Ã¥È¤òͽÌ󤷤ơ¢¥Á¥ã¥ó¥Í¥ë¤ò³ÎΩ |
Ʊ´üÀ©¸æ †
¥¥ã¥é¥¯¥¿À©¸æ | ACK¤Ê¤É¤òÁ÷¤ê¤¢¤¦ |
¥Õ¥é¥°À©¸æ | HDLC (High Level Data Link Control) |
Ä´ÊâƱ´ü | (start bit)ʸ»ú(stop bit)(start bit)ʸ»ú(stop bit) ...¡£Á´¶ä¥×¥í¥È¥³¥ë |
- HDLC
A¤«¤éB¤Ø¤ÎÁ÷¿®ÆâÍÆ | ËÜʸ+(0,0) | ËÜʸ+(1,0) | | ËÜʸ+(2,1) | ËÜʸ+(3,1) | | ¡Ä |
B¤«¤éA¤Ø¤ÎÁ÷¿®ÆâÍÆ | | | ËÜʸ+(0,2) | | | ËÜʸ+(1,4) | ¡Ä |
ËÜʸ¤Ë³¤¤¤Æ¡¢²¿¥Ñ¥±¥Ã¥ÈÁ÷¼õ¿®¤·¤¿¤«¤Î¥Õ¥é¥°¤ò¤Ä¤±¤ëÊý¼°
¥Ñ¥±¥Ã¥È¸ò´¹Êý¼° †
X.25 †
- ³¬ÁØ
3 | ¥Í¥Ã¥È¥ï¡¼¥¯ÁØ | X.25 |
2 | ¥Ç¡¼¥¿¥ê¥ó¥¯ÁØ | HDLC |
1 | ʪÍýÁØ | X.21 |
- ÁõÃÖ
- DCE(Data Circuit-terminating Equipment¡§²óÀþ½ªÃ¼ÁõÃÖ)
- DTE(Data Terminal Equipment¡§Ã¼ËöÁõÃÖ)
- PT(Packet Terminal) : ¤½¤Î¤Þ¤ÞDCE¤È¥Ñ¥±¥Ã¥ÈÄÌ¿®¤Ç¤¤ë
- NPT(Not Packet Terminal) : ¤½¤Î¤Þ¤Þ¤Ç¤ÏDCE¤È¥Ñ¥±¥Ã¥ÈÄÌ¿®¤Ç¤¤Ê¤¤¤Î¤Ç¡¢PAD(Packet Assembly Disassembly)¤ò·Ðͳ¤·¤Æ DCE ¤ÈÄÌ¿®¤ò¹Ô¤¦¡£
¥Õ¥ì¡¼¥à¥ê¥ì¡¼ †
- ¥Ñ¥±¥Ã¥È¸ò´¹Ì֤μÂÍÑŪ¤Ê¼ÂÁõ
- X25¤Î¥¨¥é¡¼ÄûÀµµ¡Ç½¤ò´Êά²½( ´ðËÜŪ¤Ë End to End ¤Ç¤Ê¤ó¤È¤«¤·¤Æ )
- CIR(Commited Information Rate:ºÇÄãÊݾãÂÓ°è)
- íÕíÔÀ©¸æ
- BENCH : Á÷¿®¼Ô¤ËíÕíÔ¤¬µ¯¤¤Æ¤¤¤ë¤³¤È¤òÄÌÃÎ
- FENCH : ¼õ¿®¼Ô¤ËíÕíÔ¤¬µ¯¤¤Æ¤¤¤ë¤³¤È¤òÄÌÃÎ
ATM †
4 | ¥¢¥×¥ê | Ǥ°ÕĹ¤Î¥Ç¡¼¥¿¤òAAL¤ËÅϤ»¤ë |
3 | AAL | (ATM Adaptation Layer) |
2 | ATM | 53byte¸ÇÄêĹ¥Ñ¥±¥Ã¥ÈÄÌ¿®(48byte+À©¸æ5byte) |
1 | ʪÍý | |
¥¢¡¼¥é¥ó †
ÂÔ¤Á¹ÔÎó(M/M/S) †
- 1CPU(S=1)¤Î¤È¤
- JOBÅêÆþ
¦Ë JOB/sec = 15 JOB/sec
- JOB½èÍýǽÎÏ
¦Ì JOB/sec = 20 JOB/sec
- CPUÍøÍÑΨ
¦Ñ = ¦Ë/¦Ì = 15 / 20 = 0.75
- ·ÏÆâ¤ÎJOB¿ô
L = (ÂÔ¤¿¤µ¤ì¤ë³ÎΨ) / (ÂÔ¤¿¤µ¤ì¤Ê¤¤³ÎΨ) = ¦Ñ / (1-¦Ñ) = 0.75 / (1-0.75) = 3
- ÂÔ¤Á¹ÔÎóÆâ¤ÎJOB¿ô
Lq = (·ÏÆâ¤ÎJOB¿ô) * (ÂÔ¤¿¤µ¤ì¤ë³ÎΨ) = L * ¦Ñ = 3 * 0.75 = 2.25
- ÂÔ¤Á»þ´Ö
tq = L * ts = 3 * (1/20) = 0.15 sec
- ±þÅú»þ´Ö
t = tq + ts = 0.15 + (1/20) = 0.20 sec
- nCPU(S=n)¤Î¤È¤
CPUÍøÍÑΨ¤¬¡¢1/n ¤Ë¤Ê¤ë¡£
¤¹¤Ê¤ï¤Á¡¢
¦Ñ = (15 / 20) / n = 0.75 / n
¸å¤Ï1CPU¤Î¤È¤¤ÈƱ¤¸
- ǼÆÀ¤¤¤«¤ó!
- ¤Ê¤ó¤ÇCPU¤ÎǽÎϰʲ¼¤ÎJOBÅêÆþÎ̤ÇÂÔ¤Á¹ÔÎó¤¬È¯¤¹¤ë¤Î¤«¡©
- ¤¿¤È¤¨¤Ð¡¢CPU½èÍýǽÎÏ 10 sec/JOB¡¢JOBÅêÆþ 30 sec/JOB ¤È¤¹¤ë¤È¡¢CPUÍøÍÑΨ 1/3
- ÌäÂê¤ò´Êñ¤Ë¤¹¤ë¤¿¤á¤Ë¡¢60 sec ¤ÎÆâ 20 sec ¤À¤±CPU¤¬Æ°¤¯¤È¤¹¤ë¤È¡¢²¼¿Þ¤Î¤è¤¦¤ËJOB¤¬½èÍý¤µ¤ì¤Æ¤¤¤¯¤³¤È¤Ë¤Ê¤ë¡£
- ¤´¤é¤ó¤ÎÄ̤ꡢCPUǽÎϤ¬Í¾¤Ã¤Æ¤¤¤Æ¤â¡¢JOBÅêÆþ¤Î¥¿¥¤¥ß¥ó¥°¤Ë¤è¤Ã¤Æ¤ÏÂÔ¤Á¹ÔÎó¤¬È¯À¸¤·¡¢¤½¤ì¤¬¤Ê¤«¤Ê¤«²ò¾Ã¤µ¤ì¤Ê¤¤¤³¤È¤Ç¡¢1JOB¡Á2JOB¤ÎÄê¾ïŪ¤ÊÂÔ¤Á¹ÔÎó¤ÏÀ¸¤Þ¤ì¤ë¤³¤È¤¬Ê¬¤«¤ë¡£
¥Ð¥é¥ó¥¹ÌÚ †
AVLÌÚ †
º¸±¦¤ÎÉôʬÌڤι⤵¤Îº¹¤¬£±°Ê²¼¤ÎÌÚ
¿ʬÌÚ¡¢Àá¤Ï»Ò¤Ø¤Î¥Ý¥¤¥ó¥¿¤È¥¡¼Ãͤ«¤é¤Ê¤ë¡£
²¼¿Þ¤ÎÎã¤Ç¤Ï¡¢L1 < k1 < L2 < k2 < L3 < k3 < L4 < k4 < L5 < k5
ÉôʬÌڤΥХé¥ó¥¹¤òÊݤĤ¿¤á¤Ë°Ê²¼¤Îµ¬Â§¤òÊݤ¿¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
- ºÇÂçn¸Ä¤Î»Ò¤ò»ý¤ÄBÌÚ¤ò n¼¡BÌÚ ¤È¸À¤¦
- º¬¤Ï¡¢2¡Án¸Ä¤Î»Ò¤ò»ý¤Ä
- º¬¤«¤éÍդޤǤο¼¤µ¤Ï¤É¤ì¤âƱ¤¸
- Íհʳ°¤ÎÀá¤Ï¡¢¤½¤ÎÀá¤Î»ý¤Ä¥¡¼ÃͤθĿô¡Ü£±¤Î»Ò¤ò»ý¤Ä
- º¬¤ÈÍհʳ°¤ÎÀá¤Ï¡¢n/2¸Ä°Ê¾ån¸Ä°Ê²¼¤Î»Ò¤ò»ý¤Ä
õº÷¥¢¥ë¥´¥ê¥º¥à †
¥¢¥ë¥´¥ê¥º¥à | Ê¿¶ÑÈæ³Ó²ó¿ô | ºÇÂçÈæ³Ó²ó¿ô | ³µÍ× |
Àþ·Áõº÷Ë¡ | (N+1)/2 | N | ÍפÏü¤«¤é¸«¤Æ¤¤¤¯Ãµº÷Ë¡¡£ºÇ¾®1²ó¤Ç¥Ò¥Ã¥È¡¢ºÇÂçN²ñ¤Ç¥Ò¥Ã¥È¡£Ê¿¶Ñ(N+1)/2²ó¤Ç¥Ò¥Ã¥È |
Æóʬõº÷Ë¡ | log2(N) | (log2(N))+1 | À°ÎóºÑ¤ß¤Î¥ê¥¹¥È¤«¤éÌÜŪ¤ÎÃͤòõ¤¹¡£È¾Ê¬¤Å¤Ä¤Ë¹Ê¤ê¹þ¤ó¤Ç¤¤¤¯¤Î¤Ç¡¢log2(N)+1 ²ó¤Ç¥Ò¥Ã¥È¤¹¤ë(+1¤Ï¡¢ºÇ¸å¤Î°ì²ó) |
¥Ï¥Ã¥·¥åË¡ | 1 | 1 | ¥Ï¥Ã¥·¥åÃͤ«¤é¥À¥¤¥ì¥¯¥È¤Ë¥Ç¡¼¥¿¤òȯ¸«¤¹¤ë¡£¥·¥Î¥Ë¥à(¥Ï¥Ã¥·¥åÃͤξ×ÆÍ)¤¬µ¯¤¤ë²ÄǽÀ¤¬¤¢¤ë |
- ¥Ï¥Ã¥·¥åË¡¤Ë¤ª¤±¤ë¥·¥Î¥Ë¥à²óÈòË¡
- ¥ª¡¼¥×¥ó¥¢¥É¥ì¥¹
void insert( DATA ){
long hVal = hash(DATA);
while( array[hVal] != null ){
hVal++;
}
array[hVal] = DATA;
}
DATA search( DATA ){
long hVal = hash(DATA);
while( array[hVal] != DATA ){
hVal++;
}
return array[hVal];
}
- ¥·¥Î¥Ë¥à¤¬È¯À¸¤·¤¿¾ì¹ç¡¢Î٤Υϥå·¥åÃͤò»È¤¦¡£Ãµº÷»þ¤Ë¤ÏºÇ°Àþ·Áõº÷Ë¡¤Ë¤Ê¤ë¡£
- ¥Á¥§¡¼¥óË¡
void insert( DATA ){
long hVal = hash(DATA);
List chain = array[hVal];
chain.addLast( DATA );
}
DATA search( DATA ){
long hVal = hash(DATA);
List chain = array[hVal];
for( cnt = 0 ; cnt < chain.length ; cnt++ ){
if( chain[cnt] == DATA ){
return chain[cnt];
}
}
return null;
}
- ¥Ï¥Ã¥·¥åɽ¤¬¡¢¥ê¥¹¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
- õº÷»þ¤Î·×»»Î̤ϡ¢¥ê¥¹¥È¤«¤éDATA¤òÀþ·Áõº÷Ë¡¤Ç¸«¤Ä¤±¤ë¤³¤È¤ËÅù¤·¤¤¡£
- ¥Ç¡¼¥¿¿ôN ¥Ï¥Ã¥·¥åɽ¤ÎÂ礤µM ¤È¤¹¤ë¤È¡¢·×»»ÎÌ¤Ï O(N/M)
¥½¡¼¥È(À°Îó) †
Ã༡ź²ÃË¡ †
¥¢¥ë¥´¥ê¥º¥à | Îã | ³µÍ× |
´ðËܸò´¹Ë¡(¥Ð¥Ö¥ë¥½¡¼¥È) | [32]1 -> 231 -> 2[31] -> 213 -> [21]3 -> 123 | ÎÙƱ»Î¤ÇÈæ³Ó¤·¤ÆÂ礤¤Êª¤ò¸å¤í¤Ë»ý¤Ã¤Æ¤¤¤¯¡£Ë¢¤¬É⤤¤Æ¤¯¤ë¤è¤¦¤Ê¤Î¤Ç¡¢¥Ð¥Ö¥ë¥½¡¼¥È |
´ðËÜÁªÂòË¡ | [321,] -> [32,1] -> [3,12] -> [,123] | ̤À®Îó¥ê¥¹¥È¤ÎÃæ¤Ç°ìÈÖ¾®¤µ¤¤ÃͤòÈ´¤½Ð¤·¤Æ¡¢À°ÎóºÑ¤ß¥ê¥¹¥È¤Î±¦Ã¼¤ËÄɲà |
´ðËÜÁÞÆþË¡ | [321,] -> [21,3] -> [1,23] -> [,123] | ̤À®Îó¥ê¥¹¥È¤Îº¸Ã¼¤ò¡¢À°ÎóºÑ¤ß¥ê¥¹¥È¤Î¤·¤«¤ë¤Ù¤¤È¤³¤í¤ËÁÞÆþ¤¹¤ë |
·×»»Î̤ϤȤâ¤Ë¡¢n(n-1) / 2 = O(n^2)
¥¯¥¤¥Ã¥¯¥½¡¼¥È †
¡ [3 7 2 4 1 5 6 ]
¢ [3 2 1] *4* [ 7 5 6 ] 4¤ò¼´¤È¤·¤ÆÆó¤Ä¤Ëʬ¤±¤ë
£ [1 *2* 3] 4 [ *5* 7 6 ] 2¤ò¼´¤È¤·¤ÆÉôʬ¥ê¥¹¥È(321)¤òÆó¤Ä¤Ëʬ¤±¤ë
5¤ò¼´¤È¤·¤ÆÉôʬ¥ê¥¹¥È(756)¤òÆó¤Ä¤Ëʬ¤±¤ë
¤ [1 2 3] 4 [ 5 [6 *7*] ] 7¤ò¼´¤È¤·¤ÆÉôʬ¥ê¥¹¥È(76)¤òÆó¤Ä¤Ëʬ¤±¤ë
-------------------------------
1 2 3 4 5 6 7 Á´¤Æ¤¬Éôʬ¥ê¥¹¥È¤Ëʬ²ò¤µ¤ì¤¿¤Î¤ÇÀ°ÎóºÑ¤ß
- ŬÅö¤ËÁª¤ó¤À¼´¤è¤ê¡¢Â礤¤Ãͤν¸¹ç¡¢¾®¤µ¤¤Ãͤν¸¹ç¤Ëʬ¤±¤ë
- Éôʬ¥ê¥¹¥È¤Ëʬ²ò¤Ç¤¤Ê¤¯¤Ê¤Ã¤¿¤éÀ°Îó½ªÎ»
- ·×»»Î̤ϡ¢O( n * log2(n) )
- ¤¿¤À¤·¡¢¼´¤Ë¤¤¤Ä¤âºÇ¾®ºÇÂçÃͤ¬½Ð¤Æ¤¤¿¾ì¹ç¡¢Ã༡ź²ÃË¡¤ÈƱ¤¸¤Ë¤Ê¤ê O( n^2 )
¥Ò¡¼¥×¥½¡¼¥È †
¿Æ<»Ò ¤ò¸«¤¿¤¹¥Ò¡¼¥×ÌÚ¤«¤é¡¢º¬¤ò¼è¤ê¡¢¥Ò¡¼¥×ÌÚ¤òºÆ¹½À®¤·¡¢¤Þ¤¿º¬¤ò¼è¤ë¡¦¡¦¡¦
- ½é´ü¾õÂ֤Υҡ¼¥×ÌÚ
¡¡¡¡¡¡ £²
¡¡¡¡¡¡¡¿¡À
¡¡¡¡£µ¡¡¡¡11
¡¡¡¿¡À¡¡¡¿¡¡¡À
£¸¡¡13 12¡¡¡¡15
- ¥Ò¡¼¥×Ìڤκ¬[£²]¤ò¼è¤ê¡¢À°ÎóºÑ¤ß¥ê¥¹¥È¤ËÄɲá£Âå¤ï¤ê¤ËŬÅö¤ÊÍÕ¤òº¬¤Ë»ý¤Ã¤Æ¤¯¤ë
¡¡¡¡¡¡ 15
¡¡¡¡¡¡¡¿¡À
¡¡¡¡£µ¡¡¡¡11
¡¡¡¿¡À¡¡¡¿¡¡¡À
£¸¡¡13 12¡¡¡¡¡ß [2]
- £µ¤È15¤òÆþ¤ìÂؤ¨
¡¡¡¡¡¡ £µ
¡¡¡¡¡¡¡¿¡À
¡¡¡¡15¡¡¡¡11
¡¡¡¿¡À¡¡¡¿¡¡¡À
£¸¡¡13 12¡¡¡¡¡ß [2]
- £¸¤È15¤òÆþ¤ìÂؤ¨¡¢¥Ò¡¼¥×Ìڤˤʤä¿¡£
¡¡¡¡¡¡ £µ
¡¡¡¡¡¡¡¿¡À
¡¡¡¡£¸¡¡¡¡11
¡¡¡¿¡À¡¡¡¿¡¡¡À
13¡¡15 12¡¡¡¡¡ß [2]
- [£µ]¤ò¼è¤ê¡¢À°ÎóºÑ¤ß¥ê¥¹¥È¤ËÄɲá£Âå¤ï¤ê¤ËŬÅö¤ÊÍÕ¤ò¼è¤Ã¤Æ¤¯¤ë
¡¡¡¡¡¡ 12
¡¡¡¡¡¡¡¿¡À
¡¡¡¡£¸¡¡¡¡11
¡¡¡¿¡À
13¡¡15 [2,5]
- £¸¤È12¤òÆþ¤ìÂؤ¨¡¢¥Ò¡¼¥×Ìڤˤʤä¿¡£
¡¡¡¡¡¡ £¸
¡¡¡¡¡¡¡¿¡À
¡¡¡¡12¡¡¡¡11
¡¡¡¿¡À
13¡¡15
- (°Ê²¼Æ±ÍÍ)
¥Þ¡¼¥¸¥½¡¼¥È †
À°ÎóºÑ¤ß¥ê¥¹¥ÈƱ»Î¤ò¥Þ¡¼¥¸¤·¤Æ¤¤¤¯
[6] [1] [3] [4] [7] [2] [8] [5] ºÇ½é¤ÎÀ°ÎóºÑ¤ß¥ê¥¹¥È¤ÏŤµ£±¤Î¥ê¥¹¥È
|-----| |-----| |-----| |-----|
[1 6] [3 4] [2 7] [5 8] ÎÙƱ»Î¤ò¥Þ¡¼¥¸
|-------------| |-------------|
[1 3 4 6] [2 5 7 8] ÎÙƱ»Î¤ò¥Þ¡¼¥¸
|-----------------------------|
[1 2 3 4 5 6 7 8] ´°À®
¥×¥í¥»¥Ã¥µ †
CISC/RISC †
CISC | Complex Instruction Set Computer | ¥Þ¥¤¥¯¥í¥×¥í¥°¥é¥à¤ò¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ë³ÊǼ¤·¤Æµ¯Æ°»þ¤ËÆɤ߹þ¤à | Êѹ¹ÍÆ°× |
RISC | Reducted Instruction Set Computer | ¥ï¥¤¥ä¡¼¥É¥í¥¸¥Ã¥¯ | Êѹ¹ÉÔ²Ä |
¥Ñ¥¤¥×¥é¥¤¥ó †
- ¥Ñ¥¤¥×¥é¥¤¥ó
|¢«NÌ¿Îᢪ|
¨¡¨£¨¡¨¨¨¡¨¤
¢¬¡Ã£±¡Ã£²¡Ã
¡Ã¨¦¨¡¨«¨¡¨«¨¡¨¤
£Ä¡¡¡¡¡Ã£³¡Ã£´¡Ã
ÃÊ¡¡¡¡¨¦¨¡¨«¨¡¨«¨¡¨¤
¢¡¡¡¡¡¡¡¡¡Ã£µ¡Ã£¶¡Ã
¡½¡¡¡¡¡¡¡¡¨¦¨¡¨ª¨¡¨¥
¡¡¡¡¡¡¡¡¡¡|<->|
¡¡¡¡¡¡¡¡¡¡ P ns
(D+N-1)*P = (3+2-1)*1 = 4ns
- Ã༡¼Â¹Ô
¨£¨¡¨¨¨¡¨¨¨¡¨¨¨¡¨¨¨¡¨¨¨¡¨¤
¡Ã£±¡Ã£²¡Ã£³¡Ã£´¡Ã£µ¡Ã£¶¡Ã
¨¦¨¡¨ª¨¡¨ª¨¡¨ª¨¡¨ª¨¡¨ª¨¡¨¥
6ns
- ʬ´ô¥Ï¥¶¡¼¥É¡¦¥Ç¡¼¥¿¥Ï¥¶¡¼¥É
- ¥¹¡¼¥Ñ¡¼¥¹¥«¥é¡Ê¥Ñ¥¤¥×¥é¥¤¥ó¤òÊ£¿ôÍÑ°Õ¡Ë
- VLIW( Very Long Instruction Word ) ¡Ä ¥³¥ó¥Ñ¥¤¥é¤¬¤¬¤ó¤Ð¤Ã¤Æ¥Ï¥¶¡¼¥É¤¬µ¯¤¤Ê¤¤¤è¤¦¤Ë¤¹¤ë
ÊÂÎó²½ †
¥á¥â¥ê/¥¥ã¥Ã¥·¥å †
¥á¥â¥ê¤Ø¤ÎÊ¿¶Ñ¥¢¥¯¥»¥¹»þ´Ö †
TE = TC * P + TM * (1-P)
TE : Ê¿¶Ñ¥¢¥¯¥»¥¹»þ´Ö
TC : ¥¥ã¥Ã¥·¥å¥¢¥¯¥»¥¹»þ´Ö
TM : ¥á¥â¥ê¥¢¥¯¥»¥¹»þ´Ö
P : ¥¥ã¥Ã¥·¥å¥Ò¥Ã¥ÈΨ
¥¥ã¥Ã¥·¥å¤Î½ñ¤ÌᤷÊýË¡ †
- ¥é¥¤¥È¥¹¥ë¡¼(Ã༡¥á¥â¥ê¤Ë½ñ¤Ì᤹)
- ¥é¥¤¥È¥Ð¥Ã¥¯(°ìü¥¥ã¥Ã¥·¥å¤Ë½ñ¤¹þ¤ß¡¢¤¢¤È¤Ç¥á¥â¥ê¤Ë½ñ¤Ì᤹)
- ¥é¥¤¥È¥Ð¥Ã¥¯¥¢¥ë¥´¥ê¥º¥à
LRU | Least Recently Used |
FIFO | First In First Out |
LIFO | Last In First Out (=Stack) |
LFU | Least Frequently Used |
¥¥ã¥Ã¥·¥å¤È¥á¥â¥ê¤Î¥Þ¥Ã¥Ô¥ó¥° †
- ¥À¥¤¥ì¥¯¥È¥Þ¥Ã¥Ô¥ó¥°
¥á¥â¥ê¡¡¡¡¡¡£±¡¡£²¡¡£³¡¡£´¡¡£µ¡¡£¶¡¡£·¡¡£¸
¡¡¡¡¡¡¡¡¡¡¡¡¨¦¨¨¨¥¡¡¨¦¨¨¨¥¡¡¨¦¨¨¨¥¡¡¨¦¨¨¨¥
¥¥ã¥Ã¥·¥å¡¡¡¡£Á¡¡¡¡¡¡£Â¡¡¡¡¡¡£Ã¡¡¡¡¡¡£Ä
¤¢¤é¤«¤¸¤á¥á¥â¥êÎΰè¤È¥¥ã¥Ã¥·¥åÎΰ褬·è¤á¤é¤ì¤Æ¤¤¤ë
- ¥Õ¥ë¡¦¥¢¥½¥·¥¨¡¼¥Æ¥£¥Ö
¥á¥â¥ê¡¡¡¡¡¡£±¡¡£²¡¡£³¡¡£´¡¡£µ¡¡£¶¡¡£·¡¡£¸
¡¡¡¡¡¡¡¡¡¡¡¡¨¦¨¡¨ª¨¡¨ª¨¡¨ª¨¨¨ª¨¡¨ª¨¡¨ª¨¡¨¥
¥¥ã¥Ã¥·¥å¡¡¡¡¡¡¡¡¡¡¡¡ £Á£Â£Ã£Ä
¥¥ã¥Ã¥·¥å¤Î¶õ¤Îΰè¤Ë¥á¥â¥ê¤¬¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë
- ¥»¥Ã¥È¡¦¥¢¥½¥·¥¨¡¼¥Æ¥£¥Ö
¥á¥â¥ê¡¡¡¡¡¡£±¡¡£²¡¡£³¡¡£´¡¡£µ¡¡£¶¡¡£·¡¡£¸
¡¡¡¡¡¡¡¡¡¡¡¡¨¦¨¡¨ª¨¨¨ª¨¡¨¥¡¡¨¦¨¡¨ª¨¨¨ª¨¡¨¥
¥¥ã¥Ã¥·¥å¡¡¡¡£Á£Â(Set)¡¡¡¡¡¡¡¡£Ã£Ä(Set)
¥»¥Ã¥È¤ÎÃæ¤Ç¤Ï¡¢¥Õ¥ë¥¢¥½¥·¥¨¡¼¥Æ¥£¥Ö
¥á¥â¥êÊݸ¹½ †
¶³¦¥ì¥¸¥¹¥¿ | ¥×¥í¥°¥é¥àËè¤Ë¥¢¥¯¥»¥¹¤Ç¤¤ëÎΰè¤ò·è¤á¤Æ¤ª¤¯ |
¼Â¹Ô¥â¡¼¥É | ¥æ¡¼¥¶¥â¡¼¥É¡¢Æø¢¥â¡¼¥É |
Êݸ¼ | ¥á¥â¥êÎΰè¤Ë¸°¤ò³Ý¤±¤Æ¤ª¤¡¢¹ç¤¤¸°¤ò»ý¤Ã¤Æ¤¤¤ë¥×¥í¥°¥é¥à¤Î¤ß¥¢¥¯¥»¥¹¤òµö¤¹ |
¥ê¥ó¥°Êý¼° | ¥á¥â¥êÎΰè¤Ë½ÅÍ×Å٤˽¾¤Ã¤Æ¥ê¥ó¥°ÈÖ¹æ¤òÉÕ¤±¤ë¡£¥×¥í¥°¥é¥à¤Î¥ê¥ó¥°ÈÖ¹æ¤ÎÊý¤¬¹â¤±¤ì¤Ð¥¢¥¯¥»¥¹²Äǽ¡£¥Ù¥ó¿Þ¤Ç¥¢¥¯¥»¥¹²ÄǽÎΰè¤ò½ñ¤¯¤È¥ê¥ó¥°¾õ¤Ë¤Ê¤ë¤³¤È¤«¤é |
²¾ÁÛµ²± †
- ²¾ÁÛµ²±ÅоìÁ°(¸ÅÂå)¤Î¥á¥â¥ê´ÉÍý
- ñ°ìϢ³³ä¤êÅö¤ÆÊý¼°
- ¸ÇÄê¶è²èÊý¼°¡Ê¥Ñ¡¼¥Æ¥£¥·¥ç¥óÊý¼°¡Ë
- ¾®¤µ¤¤¥×¥í¥°¥é¥à¤Ë¤â¹Âç¤Ê¥á¥â¥êÎΰ褬³ä¤ê¿¶¤é¤ì¤ë
- ¥×¥í¥»¥¹ÆâÉô¤Î¤ß»ÈÍÑÎΰè¡áÆâÉô¥Õ¥é¥°¥á¥ó¥Æ¡¼¥·¥ç¥ó¡¦¥¬¥Ù¡¼¥¸
- ²ÄÊѶè²èÊý¼°
- ¥á¥â¥êÎΰè¤Î³ÎÊݤȲòÊü¤ò·«¤êÊÖ¤¹¤È¡¢ÍøÍѤǤ¤Ê¤¤¾®¤µ¤ÊÃÇÊÒ¤¬È¯À¸
- ¡Ê³°Éô¡Ë¥Õ¥é¥°¥á¥ó¥Æ¡¼¥·¥ç¥ó
- ¥¬¥Ù¡¼¥¸¡¦¥³¥ì¥¯¥·¥ç¥ó¡Ê¡á¥á¥â¥ê¡¦¥³¥ó¥Ñ¥¯¥·¥ç¥ó¡Ë
- ¥ª¡¼¥Ð¡¼¥ì¥¤Êý¼°¡Ê¡á¥Ð¥ó¥¯ÀÚ¤êÂؤ¨¡Ë
- ¥¹¥ï¥Ã¥×Êý¼°¡Ê¡á¥Ð¥ó¥¯¤ò¥Ç¥£¥¹¥¯¾å¤Î¥¹¥ï¥Ã¥×¥Õ¥¡¥¤¥ë¤Ëºî¤ë¡Ë
- ²¾ÁÛµ²±Êý¼°
- Á´¥×¥í¥»¥¹¤Ë¡¢²¾ÁÛŪ¤ËÁ´¥á¥â¥êÎΰè¤ò³ä¤êÅö¤Æ¤ë¡££Ï£Ó¤¬²¾ÁÛ¥á¥â¥ê¤ò¼Â¥á¥â¥ê¤ËÊÑ´¹¤·¤Æ¼Â¹Ô¤¹¤ë¡£
- ¥Ú¡¼¥¸¥ó¥°¡Ê¡á²¾ÁÛ¥á¥â¥ê¤È¼Â¥á¥â¥ê¤Î¥Þ¥Ã¥Ô¥ó¥°¡Ë
- DAT(Dynamic Address Translation)¡¡¡§¡¡¥Ú¡¼¥¸¥Æ¡¼¥Ö¥ë¤ò»È¤¤¡¢²¾ÁÛ¥á¥â¥ê¤È¼Â¥á¥â¥ê¤Î¥Þ¥Ã¥Ô¥ó¥°¤ò¹Ô¤¦
- ¥Þ¥Ã¥Ô¥ó¥°¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢¥¥ã¥Ã¥·¥å¤ÈƱ¤¸¡£LRU¡¢FIFO¤Ê¤É
- ¥Ú¡¼¥¸¥Õ¥©¥ë¥È¡Ê¡á²¾ÁÛ¥á¥â¥ê¶õ´Ö¤¬¼Â¥á¥â¥ê¤«¤é¥¹¥ï¥Ã¥×¥Õ¥¡¥¤¥ë¤ËÂàÈò¤µ¤ì¤ë¤³¤È¡Ë
- ¥¹¥é¥Ã¥·¥ó¥°¡Ê¡á¥Ú¡¼¥¸¥Õ¥©¥ë¥È¤¬¥¬¥·¥¬¥·µ¯¤¤Æ¤¤¤ë¾õÂÖ¡Ë
- ¥ï¡¼¥¥ó¥°¥»¥Ã¥È¡Ê¡á¤è¤¯»È¤ï¤ì¤Æ¤¤¤ë¥á¥â¥êÎΰ衣¥ï¡¼¥¥ó¥°¥»¥Ã¥È¤Ç¤Ê¤¤Îΰ褬¥Ú¡¼¥¸¥Õ¥©¥ë¥È¤¹¤ë¡Ë
¥Ç¥£¥¹¥¯ †
ÍÆÎÌ †
B(Byte/Sector) * S(Sector/Track) * T(Track/Sylinder) * N(Sylinder)
¥¢¥¯¥»¥¹»þ´Ö †
¥¢¥¯¥»¥¹»þ´Ö = Ê¿¶Ñ¥Ø¥Ã¥ÉÂÔ¤Á»þ´Ö + ¥Ç¡¼¥¿Å¾Á÷»þ´Ö
= Ê¿¶Ñ¥·¡¼¥¯»þ´Ö + Ê¿¶Ñ²óžÂÔ¤Á»þ´Ö + ¥Ç¡¼¥¿Å¾Á÷»þ´Ö
= Ê¿¶Ñ¥·¡¼¥¯»þ´Ö + (1/²óž¿ô)*(1/2) + ¥Ç¡¼¥¿Å¾Á÷»þ´Ö
- Ê¿¶Ñ¥·¡¼¥¯»þ´Ö : ¥Ø¥Ã¥É¤¬½êÄê¤Î¥·¥ê¥ó¥À¤ËÍè¤ë»þ´Ö
- Ê¿¶Ñ²óžÂÔ¤Á»þ´Ö : ¥Ø¥Ã¥É¤Î²¼¤ËÌÜŪ¤Î¥È¥é¥Ã¥¯¤¬Íè¤ë»þ´Ö
¥Ç¥£¥¹¥¯¥¥ã¥Ã¥·¥å¤¬¤¢¤ë¾ì¹ç¤Î¥¢¥¯¥»¥¹»þ´Ö †
TE = TC * P + TD * (1-P)
TE : Ê¿¶Ñ¥¢¥¯¥»¥¹»þ´Ö
TC : ¥¥ã¥Ã¥·¥å¥¢¥¯¥»¥¹»þ´Ö
TD : ¥Ç¥£¥¹¥¯¥¢¥¯¥»¥¹»þ´Ö
P : ¥¥ã¥Ã¥·¥å¥Ò¥Ã¥ÈΨ
RAID †
- Redundant Array of Independent Disks
- RAID 0(¥¹¥È¥é¥¤¥Ô¥ó¥°)
- RAID 1(¥ß¥é¡¼¥ê¥ó¥°)
- RAID 2(¥Ñ¥ê¥Æ¥£ÀìÍѥǥ£¥¹¥¯¤òÊ£¿ôÍÑ°Õ¤·¡¢£²ÂæƱ»þ¤Ë¸Î¾ã¤·¤Æ¤âÉüµì²Ä)
DISK1 DISK2 DISK3 DISK4 DISK5
|£Ä£±| |£Ä£²| |PA12| |PB12| |PC12|
|£Ä£³| |£Ä£´| |PA34| |PB34| |PC34|
|£Ä£µ| |£Ä£¶| |PA56| |PB56| |PC56| ¢¨ D:Data, PA/PB/PC:Parity(¥Ï¥ß¥ó¥°Éä¹æ)
- ¥Ñ¥ê¥Æ¥£ÀìÍѥǥ£¥¹¥¯¤ËÉé²Ù½¸Ãæ
- ÍÆÎ̤¬¤¢¤ó¤Þ¤êÁý¤¨¤Ê¤¤
- RAID 3,4(RAID2¤ò´Êά²½¡¢¥Ñ¥ê¥Æ¥£ÀìÍѥǥ£¥¹¥¯¤Ï°ì¤Ä)
DISK1 DISK2 DISK3
|£Ä£±| |£Ä£²| |£Ð12|
|£Ä£³| |£Ä£´| |£Ð34|
|£Ä£µ| |£Ä£¶| |£Ð56| ¢¨ D:Data, P:Parity(XOR)
- ¥Ñ¥ê¥Æ¥£ÀìÍѥǥ£¥¹¥¯¤ËÉé²Ù½¸Ãæ
- RAID 3 : ¥Ó¥Ã¥Èñ°Ì¤Ç¥Ñ¥ê¥Æ¥£·×»»
- RAID 4 : ¥Ö¥í¥Ã¥¯Ã±°Ì¤Ç¥Ñ¥ê¥Æ¥£·×»»
- RAID 5(£³Âæ°Ê¾å¡¢¥Ñ¥ê¥Æ¥£¤òʬ»¶¤·£±Âæ²õ¤ì¤Æ¤âÉüµì²Ä)
DISK1 DISK2 DISK3
|£Ä£±| |£Ä£²| |£Ð12|
|£Ä£³| |£Ð34| |£Ä£´|
|£Ð56| |£Ä£µ| |£Ä£¶| ¢¨ D:Data, P:Parity(XOR)
DISK1 DISK2 DISK3
| ¡ß | |£Ä£²| |£Ð12| -> £Ä£²,£Ð12 ¤«¤é £Ä£± ¤òÉüµì²Ä
| ¡ß | |£Ð34| |£Ä£´| -> £Ð34,£Ä£´ ¤«¤é £Ä£³ ¤òÉüµì²Ä
| ¡ß | |£Ä£µ| |£Ä£¶| -> £Ä£µ,£Ä£¶ ¤«¤é £Ð56 ¤òÉüµì²Ä
- ¥Ñ¥ê¥Æ¥£½ñ¤¹þ¤ß¤ò¥é¥¦¥ó¥É¥í¥Ó¥ó¤Ë¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¥Ñ¥ê¥Æ¥£ÀìÍѥǥ£¥¹¥¯¤ËÉé²Ù¤¬½¸Ã椹¤ë¤Î¤òËɤ°
- RAID 6(RAID 5 ¤Î³ÈÄ¥¡¢¥Ñ¥ê¥Æ¥£¤ò£²¤Äºî¤ê£±Âæ²õ¤ì¤Æ¤âÉüµì²Ä)
DISK1 DISK2 DISK3 DISK4
|£Ä£±| |£Ä£²| |PA12| |PB12|
|£Ä£³| |PA34| |PB34| |£Ä£´|
|£Ð56| |PB56| |£Ä£µ| |£Ä£¶| ¢¨ D:Data, PA,PB:(¥Ï¥ß¥ó¥°Éä¹æ)
- RAID 10
- RAID 50
- ¥Ñ¥ê¥Æ¥£ÀìÍѥǥ£¥¹¥¯¤ËÉé²Ù¤¬½¸Ã椹¤ë¤Ã¤Æ¤É¤¦¤¤¤¦¤³¤È¤è¡©
DISK1 DISK2 DISK3
|£Ä£±| |£Ä£²| |£Ð12|
|£Ä£³| *£Ä£´* *£Ð34*
|£Ä£µ| |£Ä£¶| |£Ð56| D:Data, P:Parity(XOR)
D4¤¬½ñ¤´¹¤¨¤é¤ì¤¿¤È¤¡¢DISK2 ¤È DISK3 ¤Ë½ñ¤¹þ¤ß¤ò¹Ô¤¦É¬Íפ¬¤¢¤ë¤¬¡¢DISK1 ¤Ë¤Ï½ñ¤¹þ¤àɬÍפ¬¤Ê¤¤¡£
¤Ä¤Þ¤ê¡¢¥Ç¡¼¥¿¤¬¾å½ñ¤¤µ¤ì¤ë¤È¤¤Ë¤Ï¡¢¾ï¤Ë¥Ñ¥ê¥Æ¥£ÀìÍѥǥ£¥¹¥¯¤¬Æ°¤¯¤³¤È¤Ë¤Ê¤ë¡£
XOR¥Ñ¥ê¥Æ¥£ †
£Ä£± XOR £Ä£² = £Ð12
¤È¤¹¤ë¤È¡¢
£Ä£± XOR £Ð12 = £Ä£²
£Ä£² XOR £Ð12 = £Ä£±
¥Ï¥ß¥ó¥°Éä¹æ †
- ¥Ï¥ß¥ó¥°Éä¹æ
- 1bit ¤Þ¤Ç¤Î¸í¤êÄûÀµ¤¬½ÐÍè¤ë
- ³ÈÄ¥¥Ï¥ß¥ó¥°Éä¹æ
- 1bit ¤Þ¤Ç¤Î¸í¤êÄûÀµ¡¢2bit ¤Þ¤Ç¤Î¸í¤êȯ¸« ¤¬½ÐÍè¤ë
- ¥Ï¥ß¥ó¥°Éä¹æ¤Î¹Í¤¨Êý
- ÉáḀ̈ϥߥó¥°Éä¹æ¤È¸À¤Ã¤¿¤é¡¢(¾ðÊó4bit¡¢¥Ï¥ß¥ó¥°Éä¹æ3bit) ¤ÎÁȤò»Ø¤¹
- °Ê²¼¡¢¹ÔÎó±é»»¤Ï2¤òË¡¤È¤¹¤ë·×»»(¥â¥¸¥å¥í2¤ÎÀ¤³¦)
- ÍפϷ׻»·ë²Ì¤ò2¤Ç³ä¤Ã¤¿Í¾¤ê¤òÅú¤¨¤È¤¹¤ëÀ¤³¦
- XOR¤ò¼è¤Ã¤Æ¤¤¤ë¤Î¤ÈƱ¤¸
- ³µÇ°¤òÍý²ò¤¹¤ë¾å¤Ç¤Ï;¤ê¿¼¤¯¹Í¤¨¤Ê¤¤Êý¤¬Îɤ¤¤«¤â¡¦¡¦¡¦
- º£¡¢Á´¤Æ¤ÎÎ󤬰ۤʤë H ¤òÍÑ°Õ¤¹¤ë¡£(Á´¤Æ¤ÎÎ󤬰ۤʤ뤳¤È¤¬¥ß¥½)
- ¼¡¤Î¾ò·ï¤òËþ¤¿¤¹ G ¤òµá¤á¤ë
- ¤³¤³¤ÇÁ÷¿®Â¦¤Ç¡¢4bit¤Î¥Ç¡¼¥¿ x ¤ËÂФ·¤Æ¡¢7bit¤Î y ¤ò·×»»¤·¡¢¼õ¿®Â¦¤ËÁ÷¤Ã¤¿¤È¤¹¤ë¡£(¤Á¤Ê¤ß¤Ë¡¢£Ç¤ÎÀèƬ4Îó¤ò¸«¤ì¤ÐÌÀ¤é¤«¤Ê¤è¤¦¤Ë¡¢y ¤ÎÀèƬ 4bit ¤Ï¡¢x ¤ÈƱ¤¸)
- ¸í¤ê¤¬¤Ê¤±¤ì¤Ð¡¢¼õ¿®¤·¤¿ y ¤Ë H ¤ò¤«¤±¤ë¤È 0 ¹ÔÎó(¥Ù¥¯¥È¥ë)¤Ë¤Ê¤ë¤Ï¤º¤Ç¤¢¤ë¡£y¤ÎƬ 4bit ¤¬ x ¤È¤Ê¤ë¡£
- ÄÌ¿®·ÐÏ©¤Ç1bit¤Î¸í¤ê e ¤¬È¯À¸¤·¡¢¼õ¿®Â¦¤Ç¤Ï y' ¤ò¼õ¤±¼è¤Ã¤¿¤È¤¹¤ë¤È¡¢
- ¼õ¿®¤·¤¿ y' ¤Ë H ¤ò¤«¤±¤ë¤È eH ¤Ë¤Ê¤ë¤Î¤Ç¡¢eH¥Ù¥¯¥È¥ë ¤ÈÅù¤·¤¤ H¤ÎÎó ¤ËÂбþ¤¹¤ë¥Ó¥Ã¥È¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤³¤È¤¬Ê¬¤«¤ë(¤³¤³¤Ç¡¢H¤ÎÎó¤¬Á´¤Æ°ã¤¦¤³¤È¤¬À¸¤¤Æ¤¯¤ë)
- ¤È¤¤¤¦¤³¤È¤Ç¡¢¼õ¿®¤·¤¿ y' ¤Î ³ºÅö¥Ó¥Ã¥È¤òȿž¤¹¤ì¤Ð¡¢y ¤ËÌ᤹¤³¤È¤¬½ÐÍè¤ë¡£y¤ÎƬ 4bit ¤¬ x ¤È¤Ê¤ë¡£
- ³ÈÄ¥¥Ï¥ß¥ó¥°Éä¹æ : (¾ðÊó4bit¡¢¥Ï¥ß¥ó¥°Éä¹æ3bit¡¢¥Ñ¥ê¥Æ¥£1bit)
¥Ñ¥ê¥Æ¥£¤Ï¡¢(¾ðÊó4bit + ¥Ï¥ß¥ó¥°Éä¹æ3bit) ¤Î 7bit ¤Î³Æ·å¤Î XOR ¤ò¼è¤Ã¤¿¥â¥Î
¢ª 2bit¤Þ¤Ç¤Î¸í¤êȯ¸«¤È 1bit ¤Î¸í¤êÄûÀµ¤¬²Äǽ
Á÷¤é¤ì¤Æ¤¤¿ y ¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤È¤¤Ë H' ¤ò»È¤¦¤È¥Ñ¥ê¥Æ¥£·×»»¤Þ¤Ç¤Ç¤¤ë(2¤òË¡¤È¤¹¤ë²Ã»» = XOR ¤À¤«¤é)
·ë¶ÉƱ¤¸¤³¤È¤Ê¤ó¤À¤±¤É¤Í¡£
£Ï£Ó¡Ê¥×¥í¥»¥¹´ÉÍý¡Ë †
¥×¥í¥»¥¹¤Î¾õÂÖÁ«°Ü †
¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¤
¨¢¥×¥í¥»¥¹À¸À®¨¢
¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¥
¡¡¡¡¡¡¡Ã¡¡¡¡¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤ Dispatch ¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤
¡¡¡¡¡¡¡¨¡¡ä¨¢¼Â¹Ô²Äǽ¾õÂÖ ¨¢¨¡¨¡¨¡¢¨¡¨¡¡ä¨¢¼Â¹Ô¾õÂÖ ¨¢
¡¡¡¡¡¡¡¡¡¡¡¡¨¢ready state ¨¢¡¡¡¡¡¡¡¡¡¡¡¡¡¡¨¢running state ¨¢¨¡¨¡¦
¡¡¡¡¡¡¡¡¡¡¡¡¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥¡ã¨¡¨¡£¨¡¨¡¨¡¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥¡¡¡¡¡Ã
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¢Ê¡¡¡¡¡¡¡¡ Preemption ¡¡¡¡¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¡¡¡¡¡¡¡Ã
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¡¡¡¡(¥¿¥¤¥Þ³ä¤ê¹þ¤ß¤Ê¤É)¡Ã¡¡¡¡¡¡¡¡¡¡¡¡£Ö
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¤
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¡Ã¥×¥í¥»¥¹½ªÎ»¡Ã
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¡ÃÂÔ¤Á¾õÂÖ ¡Ã¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¥
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¥¨¡¨¡¨¡¡Ãwait state ¡Ã¡ã¨¡¨¡¤
¡¡¡¡¡¡¡¡¡¡¡¡¡¡Æþ½ÐÎϽªÎ»¡¡¡¡¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥¡¡¡¡ÆþÎÏÂÔ¤Á¤Ê¤É
- ¥Î¥ó¥×¥ê¥¨¥ó¥Æ¥£¥Ö£Ï£Ó¤Ï¡¢£¤¬¤Ê¤¤ (Mac OS 9 ¤Ê¤É)
- ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¦¤ÇŬÅö¤Ê¤È¤¤ËÂÔ¤Á¾õÂÖ¤ËÌá¤ë¤è¤¦¤ËÀ©¸æ¤¹¤ëɬÍפ¬¤¢¤ë
- ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬Ìµ¸Â¥ë¡¼¥×¤Ë¥Ï¥Þ¥ë¤ÈOS¤´¤ÈÍî¤Á¤ë
¥×¥í¥»¥¹¤ÎCPU¤Ø¤Î³ä¤êÅö¤Æ(Dispatch)¥¢¥ë¥´¥ê¥º¥à †
- ¥é¥¦¥ó¥É¥í¥Ó¥ó
¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤¡¡¡¡¡¡¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤
¨¢¼Â¹Ô²Äǽ¾õÂÖ ¨¢¡¡¡¡¡¡¨¢¼Â¹Ô¾õÂÖ(CPU) ¨¢
¨¢ ¡Ã¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã
¨¢ ¡û ¡û ¡û¡Ã¡½¡½¡ä¡Ã¡¡¡¡¡¡¡ü¡¡¡¡¡¡¡Ã
¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥¡¡¡¡¡¡¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥
¡¡¡¡¢Ê¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã¥¿¥¤¥Þ³ä¤ê¹þ¤ß
¡¡¡¡¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥
- °ìÄê»þ´ÖÆâ¤Ë¥×¥í¥»¥¹¤¬½ª¤ï¤é¤Ê¤¤¤È¡¢¥¿¥¤¥Þ³ä¤ê¹þ¤ß¤¬µ¯¤³¤ë
- ¼Â¹Ô¾õÂÖ¤Î¥×¥í¥»¥¹¤Ï¼Â¹Ô²Äǽ¾õÂÖÂÔ¤Á¹ÔÎó¤ÎºÇ¸å¤ËÌᤵ¤ì¤ë
- ¥Õ¥£¡¼¥É¥Ð¥Ã¥¯ÂÔ¤Á¹ÔÎó
¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤¡¡¡¡¡¡¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤
¨¢¼Â¹Ô²Ä(Í¥ÀèÅÙ¹â)¨¢¡¡¡¡¡¡¨¢¼Â¹Ô¾õÂÖ(CPU) ¨¢
¨¢ ¡Ã¡¡¡¡¡¡¡Ã¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ã
¨¢ ¡û ¡û ¡û¡Ã¡½¡½¡ä¡Ã¡¡¡¡¡¡¡ü¡¡¡¡¡¡¡Ã
¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥¡¡¡¡¡¡¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥
¡¡¡¡¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥¥¿¥¤¥Þ³ä¤ê¹þ¤ß
¡¡¡¡£Ö
¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤
¨¢¼Â¹Ô²Ä(Í¥ÀèÅÙÃæ)¨¢
¨¢ ¡Ã
¨¢ ¡û ¡û ¡û ¡û¡Ã
¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥
¨£¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¤
¨¢¼Â¹Ô²Ä(Í¥ÀèÅÙÄã)¨¢
¨¢ ¡Ã
¨¢ ¡û ¡û¡Ã
¨¦¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¡¨¥
- °ìÄê»þ´ÖÆâ¤Ë¥×¥í¥»¥¹¤¬½ª¤ï¤é¤Ê¤¤¤È¡¢¥¿¥¤¥Þ³ä¤ê¹þ¤ß¤¬µ¯¤³¤ë
- ¼Â¹Ô¾õÂÖ¤Î¥×¥í¥»¥¹¤Ï¡¢Í¥ÀèÅ٤ΰìÃÊÄ㤤¼Â¹Ô²Äǽ¾õÂÖÂÔ¤Á¹ÔÎó¤ÎºÇ¸å¤ËÌᤵ¤ì¤ë
- FIFO
- ¼Â¹Ô²Äǽ¾õÂ֤ˤʤä¿¥â¥Î¤«¤éÃ༡¼Â¹Ô¤¹¤ë
- ¥¤¥Ù¥ó¥È¥É¥ê¥Ö¥ó
- Æþ½ÐÎϤÎȯÀ¸¤ä¡¢Ç¼´ü´ÉÍý¤Ë¤è¤Ã¤Æ¥×¥í¥»¥¹¤Î¾õÂÖÁ«°Ü¤¬µ¯¤¤ë
- ¥ê¥¢¥ë¥¿¥¤¥à£Ï£Ó
¥×¥í¥»¥¹´ÖÄÌ¿® †
- ¥¤¥Ù¥ó¥È¥Õ¥é¥° : ¾¤Î¥×¥í¥»¥¹¤ÎÆ°¤¤òÀ©¸æ¤¹¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë
- Post/WaitÌ¿Îá : ¾¤Î¥×¥í¥»¥¹¤ÎÆ°¤¤òÀ©¸æ¤¹¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë
- ENQ/DEQÌ¿Îá : ¶¦Í»ñ¸»¤Î¼èÆÀ¤ò¶Ø»ß¡¦µö²Ä¤¹¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë
- IPC(Inter Process Communication)
¥·¥¹¥Æ¥à¤Î¿®ÍêÀ †
¥¹¥ë¡¼¥×¥Ã¥È †
20MIPS¤ÎCPU¤Ç¡¢80Ëü¥¹¥Æ¥Ã¥×¤Î¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ò²¿·ï¼Â¹Ô¤Ç¤¤ë¤«¡©
CPUÍøÍÑΨ¤Ï80%¤È¤¹¤ë¡£
°ìÉäǡ¢20M step/sec * 0.8 = 16M step/sec ¼Â¹Ô²Äǽ¤À¤«¤é¡¢
16M step/sec ¡à 80Ëü step/transaction = 16M ¡à 0.8M = 20 transaction/sec
ʹԼ¹ԡ¦¥¹¥¿¥ó¥Ð¥¤ †
- ¥Ç¥å¥¢¥ë¡¦¥·¥¹¥Æ¥à¡Ê£²·ÏÅýʹԲÔƯ¤µ¤»¡¢·ë²Ì¤ò¾È¹ç¤¹¤ë¡Ë
- ¥Ç¥å¥×¥ì¥Ã¥¯¥¹¡¦¥·¥¹¥Æ¥à
| ÅŸ» | OS | ¥µ¡¼¥Ó¥¹ |
¥Û¥Ã¥È¥¹¥¿¥ó¥Ð¥¤ | ON | ON | ON |
¥¦¥©¡¼¥à¥¹¥¿¥ó¥Ð¥¤ | ON | ON | OFF |
¥³¡¼¥ë¥É¥¹¥¿¥ó¥Ð¥¤ | OFF | OFF | OFF |
¹â¿®Íê²½Àß·× †
- ¥Õ¥©¡¼¥ë¥È¡¦¥¢¥Ü¥¤¥À¥ó¥¹¡Ê¸Î¾ã¤·¤Ê¤¤¤è¤¦¤Ëºî¤ë¡Ë
- ¥Õ¥©¡¼¥ë¥È¡¦¥È¥ì¥é¥ó¥¹
¥Õ¥§¡¼¥¹¥½¥Õ¥È(Éôʬ²óÉü) | ¥Õ¥©¡¼¥ë¥Ð¥Ã¥¯(½ÌÂ౿ÍÑ)¤¬½ÐÍè¤ë¤è¤¦¤Ëºî¤ë |
¥Õ¥§¡¼¥¹¥»¡¼¥Õ(´íµ¡²óÈò) | °ÂÁ´¤ÊÊý¤Ë¸Î¾ã¤¹¤ë¡£¿®¹æ¤Ï¸Î¾ã¤¹¤ë¤ÈÀ֤ˤʤë |
¥Õ¡¼¥ë¥×¥ë¡¼¥Õ | ¥æ¡¼¥¶¤¬´í¸±¤ÊÁàºî¤ò¤·¤Ê¤¤¤è¤¦¤ÊÀ߷פˤ¹¤ë |
¥·¥¹¥Æ¥à¤Î¿®ÍêÀɾ²Á †
MTBF¡¢MTTR †
- Ê¿¶Ñ¸Î¾ã´Ö³Ö = MTBF(Mean Time Between Failures)
- Ê¿¶Ñ½¤Íý´Ö³Ö = MTTR(Mean Time To Repair)
- ²ÔƯΨ= MTBF / (MTTR+MTBF)
RASIS †
RASIS = ISO/IEC9126(JIS-X-0129)
Reliability | ¿®ÍêÀ | MTBF |
Avility | ²ÄÍÑÀ | ²ÔƯΨ |
Serviceability | ÊݼéÀ | MTTR |
Integrity | ÊÝÁ´À | ¥Ç¡¼¥¿¤¬Ìµ¤¯¤Ê¤é¤Ê¤¤¤³¤È |
Security | °ÂÁ´À | |
ISO9000 †
ISO9000·Ï (ÉʼÁ´ÉÍý¡¦ÉʼÁÊݾڤ˴ؤ¹¤ëµ¬³Ê·²)
ISO9000 | ÍýÇ° |
ISO9001 | ¼Â̳¡£ISO9000¤ËÅý¹ç |
ISO9002 |
ISO9003 |
ISO9004 | ¥¬¥¤¥É¥é¥¤¥ó |
¥·¥¹¥Æ¥à³«È¯¼êË¡ †
CASE¥Ä¡¼¥ë †
Computer Aided Software Engineering
- ¾åήCASE
- ²¼Î®CASE
- ÊݼéCASE
- Åý¹çCASE
- ¥ì¥Ý¥¸¥È¥ê (CASE¥Ä¡¼¥ë¤Î°·¤¦¥É¥¥å¥á¥ó¥È¤ò³ÊǼ¤¹¤ë¥Ç¡¼¥¿¥Ù¡¼¥¹)
CMM †
Capacity Maturity Model
CMM1 | ½é´ü¥ì¥Ù¥ë¡£´ª¤ËÍê¤Ã¤¿ºî¶È¥ì¥Ù¥ë¡£ |
¢ÌÀ³Î²½ |
CMM2 | È¿Éü²Äǽ¤Ê¥ì¥Ù¥ë¡£·Ð¸³¤¬À¸¤«¤µ¤ì¤ë¥ì¥Ù¥ë¡£ |
¢É¸½à²½ |
CMM3 | ÄêµÁ¤µ¤ì¤¿¥ì¥Ù¥ë¡£¥Î¥¦¥Ï¥¦¤¬ÄêµÁ²½¤µ¤ì¤¿¥ì¥Ù¥ë¡£ |
¢À©¸æ |
CMM4 | ´ÉÍý¤µ¤ì¤¿¥ì¥Ù¥ë¡£ÀÕǤ¤¢¤ëÀ©¸æ¤¬½ÐÍè¤ë¥ì¥Ù¥ë¡£ |
¢²þÁ± |
CMM5 | ºÇŬ²½¤µ¤ì¤¿¥ì¥Ù¥ë¡£·Ñ³¤·¤¿²þÁ±¤¬½ÐÍè¤ë¥ì¥Ù¥ë¡£ |
¥·¥¹¥Æ¥àʬÀÏ †
- DFD
¡û | ¥×¥í¥»¥¹ |
¢¢ | ¥Ç¡¼¥¿ |
¡½> | ¥Ç¡¼¥¿¥Õ¥í¡¼ |
¡á | ¥Ç¡¼¥¿¥¹¥È¥¢ |
- ÊÑ´¹¿Þ( DFD + ¾õÂÖÁ«°Ü¿Þ )
¡û | ¥×¥í¥»¥¹ |
¢¢ | ¥Ç¡¼¥¿ |
¡½> | ¥Ç¡¼¥¿¥Õ¥í¡¼ |
¡Ä> | ¥³¥ó¥È¥í¡¼¥ë¥Õ¥í¡¼ |
¡á | ¥Ç¡¼¥¿¥¹¥È¥¢ |
DFD¤Î¥×¥í¥»¥¹Æ±»Î¤ò¡¢¥Ç¡¼¥¿¥Õ¥í¡¼¤È¥³¥ó¥È¥í¡¼¥ë¥Õ¥í¡¼¤Ç·ë¤Ó¡¢¥Ç¡¼¥¿¤Îή¤ì¤È¾õÂÖÁ«°Ü¤òɽ¤¹¡£
DFD¤È¾õÂÖÁ«°Ü¿Þ¤ò½ñ¤¤¤¿Êý¤¬Îɤ¤¤è¤¦¤Ê¡¦¡¦¡¦
- ¥Ú¥Í¥ê¥Ã¥È¿Þ( ÊÂÎó½èÍý¤Î°Í¸´Ø·¸¤ò¿Þ¼¨ )
¡û | ¥×¥ì¡¼¥¹(¾õÂÖ) |
¡½ | ¥È¥é¥ó¥¸¥·¥ç¥ó(»ö¾Ý) |
¡¦ | ¥È¡¼¥¯¥ó |
¥×¥í¥°¥é¥à¤Î¥â¥¸¥å¡¼¥ëʬ³ä †
- STSʬ³ä (Source:ÆþÎÏ¡¢Transform:ÊÑ´¹¡¢Sink:½ÐÎÏ)
- TRʬ³ä (¥È¥é¥ó¥¶¥¯¥·¥ç¥óʬ³ä)
- ¶¦Ä̵¡Ç½Ê¬³ä
- ¥¸¥ã¥¯¥½¥óË¡ (Æþ½ÐÎϥǡ¼¥¿¤ÎÂбþ´Ø·¸¤«¤é¥â¥¸¥å¡¼¥ëʬ³ä¡£JSPÌÚ)
- ¥ï¡¼¥Ë¥¨Ë¡ (ÆþÎϥǡ¼¥¿¤Î¹½Â¤¤«¤é¥â¥¸¥å¡¼¥ëʬ³ä)
¥Æ¥¹¥È¼êË¡ †
½¸Àѥƥ¹¥È †
- Áý²Ã¥Æ¥¹¥È
- ¥Ü¥È¥à¥¢¥Ã¥×¥Æ¥¹¥È
- ¥É¥é¥¤¥Ð=²¼Éô¹½Â¤(ÉôÉÊ)¤ò¥Æ¥¹¥È¤¹¤ë¤¿¤á¤Ë¡¢Ì¤´°À®¤Î¾å°Ì¹½Â¤(¶È̳¥í¥¸¥Ã¥¯)¤ÎÂå¤ï¤ê¤Ë»È¤¦¥×¥í¥°¥é¥à
- ¥È¥Ã¥×¥À¥¦¥ó¥Æ¥¹¥È
- ¥¹¥¿¥Ö=¾å°Ì¹½Â¤(¶È̳¥í¥¸¥Ã¥¯)¤ò¥Æ¥¹¥È¤¹¤ë¤¿¤á¤Ë¡¢Ì¤´°À®¤Î²¼Éô¹½Â¤(ÉôÉÊ)¤ÎÂå¤ï¤ê¤Ë»È¤¦¥×¥í¥°¥é¥à
- ÈóÁý²Ã¥Æ¥¹¥È
- ¥Ó¥Ã¥¯¥Ð¥ó¡¦¥Æ¥¹¥È (»ß¤á¤Æ¤¯¤ì¡¼¡ª)
- °ìÀƥƥ¹¥È (»ß¤á¤Æ¤¯¤ì¡¼¡ª)
³«È¯´ÉÍý †
¸«ÀѤâ¤ê †
¥Ç¡¼¥¿¥Ù¡¼¥¹ †
¥Ç¡¼¥¿¥Ù¡¼¥¹Àß·× †
1 | ¥Ç¡¼¥¿Ê¬ÀÏ | | |
2 | ³µÇ°Àß·× | ³µÇ°¥Ç¡¼¥¿¥â¥Ç¥ë | ER¿Þ(Entity Relational) |
3 | ÏÀÍýÀß·× | ÏÀÍý¥Ç¡¼¥¿¥â¥Ç¥ë | ³¬ÁØ·¿(1:n)¡¦¥Í¥Ã¥È¥ï¡¼¥¯·¿(n:m)¡¦´Ø·¸·¿(RDB) |
4 | ʪÍýÀß·× | ʪÍý¥Ç¡¼¥¿¥â¥Ç¥ë | ¥Ç¥£¥¹¥¯ |
ANSI/SPARC»°ÁØ¥¹¥¡¼¥Þ †
(¥×¥í¥°¥é¥à)
¡Ã
¡Ã<--- ÏÀÍý¥Ç¡¼¥¿ÆÈΩ
¢
+-----------------------------------------+
| ³°Éô¥¹¥¡¼¥Þ |
| ¥×¥í¥°¥é¥à¤äÍøÍѼԤ«¤é¸«¤¨¤ë¥Ç¡¼¥¿¹½Â¤ |
+-----------------------------------------+
¢¬
¡Ãmapping
¢
+-----------------------------------------+
| ³µÇ°¥¹¥¡¼¥Þ |
| ¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎÏÀÍý¹½Â¤¤È¤½¤ÎÆâÍƤÎÄêµÁ |
+-----------------------------------------+
¢¬
¡Ãmapping
¢
+-----------------------------------------+
| ÆâÉô¥¹¥¡¼¥Þ |
| ¥Ç¡¼¥¿¤ò³ÊǼ¤¹¤ë¤¿¤á¤ÎʪÍýŪ¤ÊÆâÍƤÎÄêµÁ|
+-----------------------------------------+
¢¬
¡ÃʪÍý¥Ç¡¼¥¿ÆÈΩÀ
¡Ã
(£Ä£É£Ó£Ë)
ACID †
Atomicity | ¸¶»ÒÀ | COMMIT-ROLLBACK ¤¬½ÐÍè¤ë¤³¤È |
Consistency | °ì´ÓÀ | COMMIT-ROLLBACK ¤Ë¤è¤Ã¤Æ¡¢½èÍý¤ËÌ·½â¤¬À¸¤¸¤Ê¤¤¤³¤È |
Isolation | ³ÖÎ¥À | COMMIT-ROLLBACK ¤¬Ê¹Լ¹Ԥµ¤ì¤Æ¤â¡¢½èÍý¤ËÌ·½â¤¬À¸¤¸¤Ê¤¤¤³¤È |
Durability | Âѵ×À | ¾ã³²Éüµì(¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¥í¥°¤«¤é¤ÎÉüµì=¥í¡¼¥ë¥Õ¥©¥ï¡¼¥É) |
RDB †
Àµµ¬²½ †
- ¥¡¼
¥¹¡¼¥Ñ¡¼¥¡¼(Super Key) | ¹Ô¤ò°ì°Õ¤ËÆÃÄê¤Ç¤¤ë°À¤ÎÁÈ |
¸õÊ䥡¼(Candidate Key) | ¥¹¡¼¥Ñ¡¼¥¡¼¤ÎÆ⡢ɬÍ׺Ǿ®¸Â¤Î°À¤ÎÁÈ |
¼ç¥¡¼(Primary Key) | ¸õÊ䥡¼¤ÎÆâ¡¢¹Ô¤òÆÃÄꤹ¤ë¤¿¤á¤Ë»È¤¦¤³¤È¤Ë¤·¤¿Â°À¤ÎÁÈ |
ÂåÂØ¥¡¼(Althernate Key) | ¸õÊ䥡¼¤ÎÆâ¡¢¼ç¥¡¼¤È¤·¤Æ»È¤ï¤ì¤Ê¤«¤Ã¤¿Â°À¤ÎÁÈ |
³°Éô¥¡¼(Foreign Key) | Ê̤Îɽ¤Î¹Ô¤ò»²¾È¤¹¤ë¤¿¤á¤Î¥¡¼¡£»²¾ÈÀèɽ¤Î¼ç¥¡¼(NOT NULL) |
- °À¤Î½¾Â°´Ø·¸
º£¡¢¼ç¥¡¼¤¬ (A,B) ¤ÎÊ£¹ç¥¡¼¤Î¾ì¹ç
- Éôʬ´Ø¿ô½¾Â°
- A¢ªC ( C¤Ï¡¢A¤¬Ê¬¤«¤ì¤ÐÆÃÄê¤Ç¤¤ë)
- B¢ªD ( D¤Ï¡¢B¤¬Ê¬¤«¤ì¤ÐÆÃÄê¤Ç¤¤ë)
- ´°Á´´Ø¿ô½¾Â°
- (A,B) ¢ª E (E¤Ï¡¢(A,B)¤ÎÁȤËÂФ·¤ÆÆÃÄꤵ¤ì¤ë)
- ¿ä°ÜŪ´Ø¿ô½¾Â°
- A¢ªF¢ªG (A¤¬Ê¬¤«¤ì¤ÐF¤¬ÆÃÄê¤Ç¤¤ë¡¢F¤¬ÆÃÄê¤Ç¤¤ì¤ÐG¤¬ÆÃÄê¤Ç¤¤ë)
- ¢¨ A¢ªF ¤«¤Ä F¢ªA ¤Î¤È¤¡¢A¤ÈF¤ÏƱ¤¸¥â¥Î¡£¤³¤Î¤È¤¡¢A ¤È G ¤Î´Ø·¸¤ÏÉôʬ´Ø¿ô½¾Â°
- ÌÜŪ
¹¹¿·»þ°Û¾ï¤ÎÇÓ½ü ( °ì¥«½ê°ì»ö¼Â = 1 fact in 1 place )
½¤Àµ»þ°Û¾ï | ¼õÃí¤È¾¦ÉÊ¥Þ¥¹¥¿¤¬¤´¤Ã¤Á¤ã¤À¤È¡¢¾¦ÉÊ̾¤¬ÊѤï¤ë¤ÈÁ´¼õÃí¤òÊѤ¨¤Ê¤¤ã¤¤¤±¤Ê¤¤ |
ÁÞÆþ»þ°Û¾ï | ¼õÃí¤È¾¦ÉÊ¥Þ¥¹¥¿¤¬¤´¤Ã¤Á¤ã¤À¤È¡¢¼õÃí¤Î¤Ê¤¤¾¦ÉʤÏÅÐÏ¿¤Ç¤¤Ê¤¤ |
ºï½ü»þ°Û¾ï | ¼õÃí¤È¾¦ÉÊ¥Þ¥¹¥¿¤¬¤´¤Ã¤Á¤ã¤À¤È¡¢¼õÃí¤¬¾Ã¤¨¤ë¤È¾¦ÉʾðÊ󤬾䨤ë |
- Âè°ìÀµµ¬²½
[¼õÃíÅÁɼ]
¢
1 *
[¼õÃí]---[¼õÃíÌÀºÙ]
- ·«¤êÊÖ¤·¹àÌÜ¡¦½¸ÃĹàÌܤÎÇÓ½ü
- ·«¤êÊÖ¤·¹àÌܤòÊÌɽ¤Ë¤¹¤ë
- ÂèÆóÀµµ¬²½
1 *
[¼õÃí]---[¼õÃíÌÀºÙ]
¢
1 * 1 *
[¼õÃí]---[¼õÃíÌÀºÙ]---[¾¦ÉÊ¥Þ¥¹¥¿]
- Éôʬ´Ø¿ô½¾Â°¤ÎÇÓ½ü
- ¥¡¼¹àÌܤ˽¾Â°¤·¤Æ¤¤¤ë°À¤òÊÌɽ¤Ë¤¹¤ë
- Âè»°Àµµ¬²½
1 * 1 *
[¼õÃí]---[¼õÃíÌÀºÙ]---[¾¦ÉÊ¥Þ¥¹¥¿]
¢
1 * * 1
[¼õÃí]---[¼õÃíÌÀºÙ]---[¾¦ÉÊ¥Þ¥¹¥¿]
|*
|
|1
[¸ÜµÒ¥Þ¥¹¥¿]
- ¿ä°ÜŪ´Ø¿ô½¾Â°¤ÎÇÓ½ü
- È󥡼¹àÌܤ˽¾Â°¤·¤Æ¤¤¤ë°À¤òÊÌɽ¤Ë¤¹¤ë
SQL(DDL) †
- Table
CREATE TABLE FRUITS (
ID INTEGER,
NAME NVARCHAR(20),
SUGAR_CONTENT INTEGER,
COUNTRY NVARCHER(20),
CLASS_ID INTEGER,
PRIMARY KEY(ID),
FOREIGN KEY(CLASS_ID) PREFERENCES PLANT_CLASS
)
- View
CREATE VIEW STOCK(ID, NAME, DAY, PRICE, TOTAL)
AS SELECT STOCK_VALUE.ID, COMPANY.NAME , STOCK_VALUE.DAY, STOCK_VALUE.PRICE, (STOCK_VALUE.PRICE * COMPANY.VOLUME)
FROM STOCK_VALUE, COMPANY
WHERE STOCK_VALUE_TABLE.ID = COMPANY.ID
- GRANT ¸¢¸Â ON ɽ̾ TO ¥æ¡¼¥¶Ì¾
- ¸¢¸Â: SELECT, INSERT,UPDATE,DELETE,ALL PRIVILEGES
- REVOKE ¸¢¸Â ON ɽ̾ FROM ¥æ¡¼¥¶Ì¾
SQL(DML) †
- INSERT INTO TABLE (ID,NAME,SUGAR_CONTENT,COUNTRY) VALUES (123,ORANGE,13,CALIFORNIA)
- UPDATE TABLE SET COUNTRY = EHIME WHERE NAME = ORANGE
- DELETE FROM TABLE WHERE ID=123
- SELECT [DISTINCT] ... FROM ... [WHERE ...] [GROUP BY ...] [HAVING ...] [ORDER BY ...]
SQL(¥¹¥È¥¢¡¼¥É¥×¥í¥·¡¼¥¸¥ã) †
EXEC SQL BEGIN
EXEC SQL DECLARE ¥«¡¼¥½¥ë̾ CURSOR FOR (SELECTʸ)
EXEC SQL OPEN ¥«¡¼¥½¥ë̾
while(1){
SQL FETCH ¥«¡¼¥½¥ë̾ INTO x // <--ÊÑ¿ô¤Ë¥«¡¼¥½¥ë¤ÎÆâÍƤòÆþ¤ì¤ë
if(SQLCODE != @)break; // <--¥«¡¼¥½¥ë¤¬½ªÎ»°ÌÃÖ¤Þ¤ÇÍè¤Æ¤¤¤¿¤é½ªÎ»
// ½èÍý
//
//
if( °Û¾ï»þ ){
EXEC SQL CLOSE ¥«¡¼¥½¥ë̾
EXEC SQL ROLLBACK
exit;
}
}
EXEC SQL CLOSE ¥«¡¼¥½¥ë̾
EXEC SQL COMMIT
Computer