본문 바로가기

전체 글75

Process Management - 14주차 수업 - 1 프로세스의 개념과 종류프로세스: 실행중인 프로그램시스템 프로세스유닉스 운영에 필요한 기능 수행사용자 프로세스사용자들이 실행시킨 프로세스프로세스의 종류프로세스설명데몬(daemon)유닉스 커널에 의해 실행되는 프로세스로 특정 서비스 제공부모(parent)자식 프로세스를 만드는 프로세스자식(child)부모에 의해 생성된 프로세스, 실행이 끝나면 부모 프로세스에서 결과를 돌려주고 종료고아(orpan)실행 도중에 부모 프로세스가 종료된 프로세스, 1번 프로세스를 새로운 부모로 가진다.좀비(zombie)부모 프로세스가 종료처리를 하지 않은 프로세스, 할당된 시스템 자원이 회수되지 않은 상태프로세스 관리프로세스 목록 보기ps [option]프로세스 정보를 출력. PID, 터미널, CPU 시간, 명령어옵션더보기-e: .. 2023. 6. 11.
EmployeeTest.java class Employee { private String name; private String id; static private int count = 0; public Employee(String name, String id) { this.name = name; this.id = id; count++; } public double earnings() { return 0; } public String toString() { return name + "(" + id + ")"; } public static int getCount() { return count; } } class SalariedEmployee extends Employee { private double monthlySalary; public .. 2023. 6. 9.
DateTest class Date { private int month; private int day; private int year; public Date(int month, int day, int year) { this.month = checkMonth(month); this.year = year; this.day = checkDay(day); } private int checkMonth(int testMonth) { if (testMonth >= 1 && testMonth 0 && testDay daysPerMonth[month]) { day = 1; month++; if (month > 12) { month = 1; year++; } if (month == 2 && day == 29 && (year % 400 =.. 2023. 6. 8.
9-weeks BankAccount import java.util.Scanner; public class BankAccount{ private double balance; public BankAccount(double initialBalance){ if(initialBalance > 0.0) balance = initialBalance; } public void credit(double amount){ balance += amount; } public double getBalance(){ return balance; } public static void main(String[] args){ BankAccount account1 = new BankAccount(50.00); BankAccount account2 = ne.. 2023. 6. 7.