3 Topics

Member Avatar for
Member Avatar for moaz.amin.37

i write a code of multithreading in which arise an race condition code is below class Race1{ public void show(String s){ try{ System.out.print("["+s); Thread.sleep(1000); }catch(InterruptedException e){ e.printStackTrace(); } System.out.println("]"); } } class Checking implements Runnable{ Race1 ob=new Race1(); String s; public Checking(String s){ this.s=s; } public void run(){ synchronized(ob){ ob.show(s); …

Member Avatar for vantrendin
0
241
Member Avatar for jeanfrg

Hi I have an assignment to do where I have to make a race between two cars (this assignment is a continuation of a previos 'mini' assignment where I had to do the 'race' with one car). The commands that I implemented for the cars is foward (increases distance travelled), …

Member Avatar for jeanfrg
1
2K
Member Avatar for GuyClapperton

You might by now have heard that Hewlett-Packard has come in for criticism for its webcams' inability to follow black faces through its face recognition software. My thanks to the [URL="http://www.nbcbayarea.com/news/tech/Called-Racist-HP-Says-Thanks-for-the-Feedback-79822477.html"]NBCBayarea[/URL] website for drawing my attention to this [URL="http://www.youtube.com/watch?v=t4DT3tQqgRM&feature=player_embedded#"]YouTube link[/URL], which pretty much proves it. Let me make it clear …

0
116

The End.