728x90
반응형

전체 글 388

Data Warehouse

repository (archive) of information gathered from multiple sources, stored under a unified schema, at a single site 다양한 곳에서 값을 가져오지만 내부에서 행해지기에 transaction 과정이 필요하지 않음 ETL : Extract-Transform-load Design Issue When and how to gather data Source driven architecture : data source가 warehouse에 새 정보를 전달 (연속적으로, 주기적으로) Destination driven architecture : warehouse가 주기적으로 data source에 새 정보를 요청 Synchronou..

Web/DB & Cloud 2021.12.10

OLAP : Online Analytical Processing

OLAP is for multidimensional data Data = measure attribute + dimension attributes measure attribute 측정한 값, 집계 함수로 계산한 값들 dimension attributes measure attribute를 이용하여 특정 관점을 정의 여기서 quantity는 measure attribute 앞의 3개는 dimension attributes Cross Tabulation (= Pivot-table) item_name과 color에 대해 sales 누적 계수 계산하기 total이 all 키워드가 있는 곳을 가져왔다고 할 수 있음 cross-tabe은 relation(컬럼 간 관계)를 표현할 수 있다 'all' 키워드로 쓰는데 n..

Web/DB & Cloud 2021.12.10

Ranking & Windowing

한 컬럼에 대해 group 별로 묶은 뒤 각 group 내에서 순위를 부여 순위 별로 정렬하려면 ORDER BY 추가 top10처럼 상위권 추출하고 싶다면 LIMIT n 추가 SELECT ID, dept_name, RANK () OVER (PARTITION BY dept_name ORDER BY GPA DESC) AS dept_rank FROM dept_grades ORDER BY dept_name, dept_rank; Type of Ranking RANK : 중복 값들에는 동일 순위로 표시, 중복 순위 다음 값은 중복 개수만큼 떨어진 순위로 출력 SELECT empNo, empName, salary, RANK() OVER (ORDER BY salary DESC) RANK등수 FROM employee; ..

Web/DB & Cloud 2021.12.10

Oracle Storage : Partitioning & Indexing

Oracle에서 데이터베이스는 파일 속 정보로 구성되었으며 instace를 통해 접근 가능하다 instance는 shared memory area로, data file과 상호작용하는 process들의 집합이다 Table Space Oracle Table Spaces System table space : 항상 생성됨. data dictionary로, trigger로, stored procedures로.. User table space : user data 저장 Temporary table space : 정렬 같은 연산용 임시 데이터 Table space

Web/DB & Cloud 2021.12.09

[실습] FreeRTOS - Signaling & Mutual Exclusion

LCD 화면에 task1와 task2가 동시에 출력하려면 shared data problem으로 인하여 글씨가 깨진다 이는 두 task가 LCD API를 호출할 때마다 systick interrupt에 의해 선점되기 때문이다 그래서 shared data에 접근할 때 1) interrupt를 껐다가 켜줘야 한다. //Disable/Enable interrupt in FreeRTOS taskENTER_CRITICAL(); // disable taskEXIT_CRITICAL(); // enable // Handling Shared Data Problem in FreeRTOS void Task1( void *pvParameters ) { int i=0; char buffer[64]; while (1) { spr..

CS/Embedded System 2021.12.08

FreeRTOS - Task Management

Sharing Resources 한 화면에 각 task가 동시에 글을 쓰려고 하면 글이 깨짐 여기서 화면이 바로 공유되는 자원 FreeRTOS 이를 이용하면 AWS와도 되는 IoT를 만들 수 있음 특징 source code - 일관성 있고, 깔끔하고, 주석도 많아서 이해하기 좋음 portable : 이식성 (ARM, intel, texas instrument 등 가능) (Assembly로 보관) scalable : 필요한 기능만 설정해서 쓸 수 있게 하여 크기를 작게 (FreeRTOSConfig.h) (최소 footprint=4KB) fully preemptive scheduling : 더 높은 우선순위가 오면 지금 하는 걸 당장 stop copperative scheduling : context swi..

CS/Embedded System 2021.12.08

Real-Time Operating Systems - Semaphore

Real-Time OS (RTOS)가 필요한 이유 [Resource Management] Task scheduling : 액셀, 브레이크 처리 등등 I/O handling [Services & management] Resource sharing ( lock 기법) or task synchronization Timing services Dynamic memory management … System organization with RTOS desktop은 os 위에서 code가 구동되는 것과 달리 임베디드 시스템은 하드웨어 위에서 코드가 구동된다 RTOS application code : example Real-Time의 특징 sensor와 actuator의 시간 제약을 통제해야 함 각 task 별로 주기적..

CS/Embedded System 2021.12.07

Programming Devices - LCD, S1&S2 btn, Joystick

You may have to understand state-machines, timing characteristics, as well as the initialization code and memory map LCD in "MSP-EXP432P4111 boostxl-edumk-ii extension board" - 128x128 pixels - 24bit color data for each pixel +) 추가적인 custom-built sample code Grlib (Graphic Library) LCD Driver (LCD device driver) Additional configurations Bitmap Font Internals char 용 bitmap을 가져와 API에 넣어서 화면에 출력 e..

CS/Embedded System 2021.12.07

[실습] Interrupt & SysTick timer

Interrupt Controller MSP432P4111에서 제공하는 Cortex-M4의 처리방식을 보자 nested vectored interrupt controller (NVIC)로 interrupt를 처리 interrupt 안의 interrupt를 처리 가능 프로그래밍 코드로 제어 가능 -> (핀마다 다르게 내맘대로 가능) multiplexed, shared interrupt를 지원 -> (공유되는 핀들이 microprocessor로 들어와서 interrupt 발생 시) Interrupt Vector Table microprocesser(up)에 interrupt가 오면 ISR의 위치를 찾아서 처리 function point array s1버튼이 눌렸을 때 S1의 ISR의 위치를 찾을 수 있도록 ..

CS/Embedded System 2021.12.07
728x90
반응형