Tags » Thread

The Gift

(Trigger warning: Spoilers of Westworld: Season 1 ahead)

There is a moment in Westworld in which a gift is given, a ‘magic bullet,’ a divine spark upon which the story of Westworld seems to, or comes to, rotate around. 4,255 more words

Story

Adjusting the thread tension in the sewing machine

What to do when the machine is badly sewing; when the thread loops or squeezes the material and breaks? 524 more words

Badly Sewing

Heart Strings

A frame, a wall, a room. Spaces that contain but exclude, create and divide. This is no way to make a heart that I hope to open. 311 more words

Studio Practise

Man stabbed twice in the stomach

{“contentType”:”NEWS_STORY”,”id”:{“value”:”122e7693a3e696047eeb44b8930cebed”,”link”:”http:\/\/api.newsapi.com.au\/content\/v2\/122e7693a3e696047eeb44b8930cebed”},”originId”:”35f3b9de-fbc2-11e7-9b0f-ca58cef895ab”,”origin”:”METHODE”,”channel”:”WEB”,”title”:”Man stabbed twice in the stomach”,”subtitle”:”Man stabbed twice in stomach at property on Sunshine Coast”,”description”:”

POLICE have declared a crime scene at a property at the Sunshine Coast after a man was reportedly stabbed twice in the abdomen.“,”link”:”http:\/\/cdn.newsapi.com.au\/link\/122e7693a3e696047eeb44b8930cebed”,”paidStatus”:”NON_PREMIUM”,”originalSource”:”The Courier-Mail”,”creditedSource”:”The Courier-Mail”,”originalAssetId”:”082336de-fb8a-11e7-a1c1-25d3e421b6dc”,”version”:”PUBLISHED”,”dateUpdated”:”2018-01-17T20:20:37.000Z”,”dateLive”:”2018-01-17T20:18:00.000Z”,”customDate”:”2018-01-17T20:20:00.000Z”,”dateCreated”:”2018-01-17T13:26:31.000Z”,”status”:”ACTIVE”,”thumbnailImage”:{“contentType”:”IMAGE”,”id”:{“value”:”6563311ab04812da3f3e88a6369c17d1″,”link”:”http:\/\/api.newsapi.com.au\/image\/v1\/6563311ab04812da3f3e88a6369c17d1″},”originId”:”crop-99d7b76a0f1783a2be9319671448d34b”,”origin”:”METHODE”,”title”:”TSV Generic Emergency Services”,”subtitle”:”ee6c80a6-fb89-11e7-a1c1-25d3e421b6dc”,”description”:”TSV Generic Emergency Services. 4,408 more words

Brisbane News

Java : Write a program, which run two threads simultaneously each threads prints "[Hello World]: threadName" Make sure no race condition arises and main thread finishes last

/*Write a program, which run two threads simultaneously each threads 
prints  ": threadName" Make sure no race condition 
arises and main thread finishes last. */

//					by Aniruddha

class NewThread implements Runnable
{
	Thread t;
	
	NewThread(String name)
	{
		t=new Thread(this,name);
		System.out.println("New thread created : "+t);
		t.start();
	}
	
	public void run()
	{
		try
		{
			for(int i = 0;i<=10;i++)
			{
				System.out.println(" : "+t+" : "+i);
				t.sleep(500);
			}
		}
		catch (InterruptedException e)
		{
			System.out.println(e);
		}
		 System.out.println("Exiting "+t);
	}
}

class HelloWorldThread
{
	public static void main(String []args)
	{
		NewThread obj = new NewThread("First Thread");
		NewThread obj2 = new NewThread("Second Thread");
		
		try
		{
			obj2.t.join();
			obj.t.join();
		}
		catch (InterruptedException e)
		{
			System.out.println(e);
		}
		
		System.out.println("Exiting main thread");
	}
}

… 165 more words
Java(Part 2)