-
Thread
classnew Thread(Runnable r)
start()
: 인자로 들어온Runnable
객체의run()
메서드 실행sleep(int n)
:n
ms 휴식interrupted()
: 중지
-
Data Stream
InputStream
class<InputStreamObject>.read()
: 스트림에서 읽어들임
OutputStream
class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://repl.it/@Gumball12/os-assignment-java-thread | |
// import modules | |
import java.lang.Thread; | |
import java.lang.Math; | |
import java.lang.InterruptedException; | |
// ThreadTester class | |
public class ThreadTester { | |
public static void main (String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Welcome file</title> | |
<link rel="stylesheet" href="https://stackedit.io/style.css" /> | |
</head> |
9주차 c# 과제 레포트입니다.
모든 코드는 gist(https://git.io/fjGar)에 업로드하였습니다.
쓰레드를 사용하여 실행 간격이 각기 다르게(1초, 2초, 3초) 동작하는 프로그램을 작성하는 문제입니다.
먼저 출력은 다음과 같습니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import azure.cosmos.cosmos_client as cosmos_client | |
import azure.cosmos.errors as errors | |
config = { | |
'ENDPOINT': 'https://testdatabase02.documents.azure.com:443/', | |
'PRIMARYKEY': 'bpYTtYyi9lEiOG1wNvg8koXq56nqyGwJgS5NEE8wZzuImRA5qFtKbkTU9tVbt4rF39XbXsQqgvuFwp977UQpJg==', | |
'DATABASE': 'ToDoList', | |
'CONTAINER': 'Items' | |
} |
image url: https://i.imgur.com/KcWJN4n.png
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import modules | |
#include <stdio.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
// define Stack struct | |
struct Stack { | |
int* arr; | |
int top; | |
unsigned length; |
-
ref는 언제나 꼭 달자 => 신뢰성 높아짐
- 꼭 ref 달 때 아니라도 굉장히 유용한 정보들을 얻을 수 있을듯
-
ref 검색방법
- 도서관 홈페이지 (없으면 원문복사신청)
- 도서관의 통합검색 (개좋은듯)
- 물론 해외 자료도 가능
- 학술DB (RISS, NDSL, 국회도서관)
- 도서관 홈페이지 통해서 가면 됨. 학교에서 구매한 유료자료 볼 수 있기 때문
- 도서관 홈페이지 (없으면 원문복사신청)
-
물론 구매안한 자료도 있기에, 원문복사신청
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cs-assignment 2-2 "Byte Manipulation - Byte Level Operation" | |
// @author shj | |
// import modules | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define STR_SIZE 10 // string size | |
#define TESTING_TIMES 30 // for unit-testing |