분류 전체보기
-
Call by Value 와 Call by Reference 의 속도 차이정리필요2 2008. 9. 1. 23:18
#include #include #include #include using namespace std; #define REPEAT 1000000 void swapReference(string *s1, string *s2); void swapValue(string s3, string s4); double showReference(string *s1, string *s2); double showValue(string string3, string string4); void main(void) { double timeo, timen; char str1[100000] = "kangwon.national.univ."; char str2[] = "com.eng.c"; char str3[100000] = "kangwon..
-
파일시스템과 RDBMS의 차이점정리필요2 2008. 9. 1. 23:17
파일시스템과 RDB의 차이점 훌륭한 의사결정은 데이터하고 하는 가공되지 않은 사실로부터 만들어진 좋은 정보에서 이루어진다. 데이터는 데이터베이스에 저장되어 있을 경우에만 효과적으로 관리될 수 있다. 데이터 : 가동되지 않는 사실, 처리되지 않은 사실을 의미 정보 : 결정의 근거가 되는 처리가 된 데이터 * 데이터는 정보를 구축하기 위한 블록을 구성한다. * 정보는 데이터를 처리함으로써 만들어진다 * 데이터는 데이터의 의미를 드러내 주는 데 사용된다. * 양질의 시기적절한 정보는 의사결정의 좋은 열쇠이다. * 양질의 의사결정은 글로벌 환경에서의 조직 생존의 열쇠이다. 데이터 관리 : 데이터를 생성, 저장, 검색하기 위한 기본 원리 파일 : 컴퓨터시스템에서 사용되는 여러 가지 보조기억장치들 중 자기디스크와 ..
-
블록할당 3가지방법정리필요2 2008. 9. 1. 23:16
• 연속할당(contiguous allocation): p378(11.15) » 디스크 탐구시간(seek time)이 최소 » 순차접근과 직접접근 모두 » 동적 기억장치 할당 » 외부단편 문제 » 파일 크기 결정(preallocation) 문제 -> extent(다른 연속할당 덩어리)로 연결 파일의 블록주소 : block들의 clusters로 보완 » 신뢰성 떨어짐 -> doubly linked list로 보완 » 직접 접근이 비효율적 » (예) FAT(File Allocation Table): p382(11.17) MS-DOS, OS/2각 • 각 partition 시작 부분에 • 테이블의 각 항복 : • 잦은 참조로 인해 caching 해야 함 • 색인 할당(indexed allocation) : p3..
-
무엇이 성공인가생각 2008. 9. 1. 23:14
무엇이 성공인가 자주 그리고 많이 웃는 것 현명한 이에게 존경을 받고 아이들에게서 사랑을 받는 것 정직한 비평가의 찬사를 듣고 친구의 배반을 참아 내는 것 아름다움을 식별할 줄 알며 다른 사람에게서 최선의 것을 발견하는 것 건강한 아이를 낳든 한 뙈기의 정원을 가꾸든 사회 환경을 개선하든 자기가 태어나기 전보다 세상을 조금이라도 살기 좋은 곳으로 만들어 놓고 떠나는 것 자신이 한때 이곳에 살았음으로 해서 단 한 사람의 인생이라도 행복해지는 것 이것이 진정한 성공이다. -랄프 왈도 에머슨-
-
운영체제 연습문제 풀이 (in English)정리필요2 2008. 9. 1. 23:10
1.1 What are the three main purposes of an operating system? Answer: To provide an environment for a computer user to execute programs on computer hardware in a convenient and efficient manner. To allocate the separate resources of the computer as needed to solve the problem given. The allocation process should be as fair and efficient as possible. As a control program it serves two major functi..
-
실습4정리필요2 2008. 9. 1. 23:08
#include #include static GLfloat theta[] = {0.0, 0.0, 0.0}; static GLint axis =1; static GLfloat theta_degree=0.1; static GLfloat zoom_factor = 0.0; static GLfloat transZ = 0.0; GLfloat ambientLight[] = {0.25f, 0.25f, 0.25f, 1.0f}; //주변광 GLfloat diffuseLight[] = {0.9f, 0.9f, 0.9f, 1.0f}; //난반사 GLfloat specular[] = {1.0f, 1.0f, 1.0f, 1.0f}; //정반사 GLfloat spotlightPos[] = {-10.0f, 3.0f, 5.0f, 1.0f..
-
실습3정리필요2 2008. 9. 1. 23:07
#include static GLfloat theta[] = {0.0, 0.0, 0.0}; static GLint axis =1; static GLfloat theta_degree=0.1; static GLfloat zoom_factor = 0.0; static GLfloat transZ = 0.0; GLfloat vertices[8][3] = {{-1.0, -1.0, 1.0}, {-1.0, 1.0, 1.0}, {1.0, 1.0, 1.0}, {1.0, -1.0, 1.0}, {-1.0, -1.0, -1.0}, {-1.0, 1.0, -1.0}, {1.0, 1.0, -1.0}, {1.0, -1.0, -1.0} }; GLfloat colors[8][3] = {{0.0, 0.0, 0.0}, {1.0, 0.0, 0..