/**
* 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |