Search:

Type: Posts; User: vijayinani

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    4,770

    Re: Java Multithreading Example - Issues

    this is working fine.



    package com.oracle;

    import java.util.Random;

    class Visitor implements Runnable {
    ThreadExample t;
  2. Replies
    3
    Views
    4,770

    Re: Java Multithreading Example - Issues

    import java.util.Random;

    class VisitorSchool implements Runnable {
    DrivingSchool drivingSchool;

    public VisitorSchool(DrivingSchool drivingSchool) {
    this.drivingSchool = drivingSchool;
    }...
  3. Replies
    3
    Views
    4,770

    Java Multithreading Example - Issues

    Hi,

    Problem statement - 5 visitors come to a car showroom having 3 cars. The visitors take a test drive for random time and the other visitors have to wait till a car becomes free. This has to be...
Results 1 to 3 of 3