9주차 c# 과제 레포트입니다.
모든 코드는 gist(https://git.io/fjGar)에 업로드하였습니다.
쓰레드를 사용하여 실행 간격이 각기 다르게(1초, 2초, 3초) 동작하는 프로그램을 작성하는 문제입니다.
먼저 출력은 다음과 같습니다.
9주차 c# 과제 레포트입니다.
모든 코드는 gist(https://git.io/fjGar)에 업로드하였습니다.
쓰레드를 사용하여 실행 간격이 각기 다르게(1초, 2초, 3초) 동작하는 프로그램을 작성하는 문제입니다.
먼저 출력은 다음과 같습니다.
// 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) { |
<!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> |
Thread
class
new Thread(Runnable r)
start()
: 인자로 들어온 Runnable
객체의 run()
메서드 실행sleep(int n)
: n
ms 휴식interrupted()
: 중지Data Stream
InputStream
class
<InputStreamObject>.read()
: 스트림에서 읽어들임OutputStream
classimport 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' | |
} |
/**
* create slave table, and then insert rows
*/
create table salves (이름 char(10) primary key, 월급 number, 나이 number);
insert into slaves values('규', 400000, 5);
insert into slaves values('설', 5000000, 73);
insert into slaves values('준', 3000000, 53);
image url: https://i.imgur.com/KcWJN4n.png
// import modules | |
#include <stdio.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
// define Stack struct | |
struct Stack { | |
int* arr; | |
int top; | |
unsigned length; |
ref는 언제나 꼭 달자 => 신뢰성 높아짐
ref 검색방법
물론 구매안한 자료도 있기에, 원문복사신청