-
(5 ะฟะพะตะฝะธ) ะะผะฟะปะตะผะตะฝัะธัะฐััะต thread
Reader
ะบะพั ะฒะพ ะฟะพะทะฐะดะธะฝะฐ ัะต ัะฐ ะฒัะธัะฐ ัะพะดัะถะธะฝะฐัะฐ ะฝะฐ ัะตะบัััะฐะปะฝะฐ ะดะฐัะพัะตะบะฐ ะฟัะพัะปะตะดะตะฝะฐ ะฟัะตะบั ัะฒะพัััะฒะพัะพmatrixFile
. ะะพะดะพั ะทะฐ ะฒัะธััะฒะฐัะต ะฝะฐ ะผะฐััะธัะฐัะฐ ะต ะดะฐะดะตะฝ ะฒะพ ะผะตัะพะดะพัrun()
. ะะพััะตะฑะฝะพ ะต ะดะฐ ะณะพ ะดะพะฟะพะปะฝะธัะต ะพะฒะพั ะบะพะด ะทะฐ ะดะฐ ะผะพะถะต ะดะฐ ัะต ะฒัะธัะฐะฐั ะผะฐััะธัะธัะต, ะฟัะธ ััะพ ัะธะฟะพั ะฝะฐin
ะฟัะพะผะตะฝะปะธะฒะฐัะฐ ััะตะฑะฐ ะดะฐ ะณะพ ะพะฒะพะทะผะพะถัะฒะฐ ะผะตัะพะดะพัreadLine()
. -
(5 ะฟะพะตะฝะธ) ะะพะฟะพะปะฝะตัะต ัะฐ
Writer
ะบะปะฐัะฐัะฐ ัะฐะบะฐ ััะพ ัะฐะฐ ัะต ัะต ะพะดะฝะตััะฒะฐ ะบะฐะบะพ thread ะธ ะฒะพ ะฟะพะทะฐะดะธะฝะฐ ัะต ะณะธ ะทะฐะฟะธัะต ะฒัะตะดะฝะพััะธัะต ะฝะฐ ะตะปะตะผะตะฝัะธัะต ะพะด ะผะฐััะธัะฐัะฐmatrix
ะฒะพ ะดะฐัะพัะตะบะฐัะฐoutputPath
ะฟะพ ะตะดะตะฝ ะตะปะตะผะตะฝั ะฒะพ ัะตะบะพัะฐ ะปะธะฝะธัะฐ ะพะด ัะฐัะปะพั.
๐
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
================================= | |
izmeฤu je nema da svetu vraฤu | |
Tomi limnija ljubi za nju dลพe | |
Nemoj da me za nju dลพe | |
Drลพe nemam ฤekanja, netvod sada klej | |
Klej Sapkowski, netvod sada klej | |
Ako je nema na dar | |
Bez tebe, neko je nema da me ลพivu |
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
================================= | |
lyric:????????? | |
Chorus | |
Oh, we're not gonna take it | |
No, we ain't gonna take it | |
We're gonna take it everywhere | |
Bought it at the drop of a hat | |
Nowadays we rap a lot |
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
package mk.ukim.finki.os.ispitni.syncHelperMethods; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* This class should be extended in order to preserve the state of the executing | |
* scenario | |
* | |
* @author ristes |
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
package mk.ukim.finki.os.av6.threadPool; | |
import java.net.Socket; | |
import static mk.ukim.finki.os.av6.threadPool.TCPServer.workerPool; | |
public class ServerWorker extends Thread { | |
private Socket clientSocket; | |
private Integer clientID; |
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
package mk.ukim.finki.os.lab3; | |
//public class BarberShopFifthWakes { | |
//} | |
import java.util.HashSet; | |
import java.util.concurrent.Semaphore; | |
import java.util.concurrent.locks.Lock; | |
import java.util.concurrent.locks.ReentrantLock; |
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
package mk.ukim.finki.os.lab3; | |
import java.util.Random; | |
import java.util.concurrent.Semaphore; | |
public class DiningPhilosophersTest { | |
public static void main(String args[]) throws InterruptedException { | |
DiningPhilosophers.runTest(); | |
} | |
} |
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
package mk.ukim.finki.os.lab3; | |
import java.util.HashSet; | |
import java.util.concurrent.Semaphore; | |
public class Singleton { | |
static int initCounter = 0; | |
private static volatile Singleton singleton; | |
private static Semaphore initalPresence = new Semaphore(1); |
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
package mk.ukim.finki.os.lab1; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Arrays; | |
public class Problem4 { | |
public static final String filePath = "/home/aleksandar/Desktop/tmp/lab1.problem4"; | |
//Interval za golemina na fajl |
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
def identity(nums): | |
"""Identity: | |
Given a list of numbers, write a list comprehension that produces a copy of the list. | |
>>> identity([1, 2, 3, 4, 5]) | |
[1, 2, 3, 4, 5] | |
>>> identity([]) | |
[] | |
""" | |
return [number for number in nums] |