/**
* 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);
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' | |
} |
-
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
<!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> |
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) { |
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
using System; | |
public abstract class Game | |
{ | |
// instance variables | |
protected int userWin, computerWin, drawn; | |
// constructor | |
public Game () | |
{ |
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 | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
class Problem_1 | |
{ | |
static void Main(string[] args) | |
{ | |
// define Student list |