private synchronized void putMessage(int num) throws InterruptedException {		 
        //while (cola.llena() == true)  
		switch(num){
			case 1:{ //BLOCKING
				//System.out.print("\t\tReceive: Blocking\n");
				wait();
				System.out.print("\t\tSend: Blocking\n");
				//cola.InsertaFinal(message, prioridad, this.nomProceso, receptor);//.addElement(new java.util.Date().toString());
		        notify();
				break;}
			case 0: //NON-BLOCKING
				System.out.print("\t\tSend: Non-Blocking\n");
				break;
			default: 	     	
	 			break;				
			}
        wait(); 
        //cola.InsertaFinal(message, prioridad, this.nomProceso, receptor);//.addElement(new java.util.Date().toString());
        notify();
    }