public void run()
	{

	    while (pause)
	    {
		Thread.yield();
	    }

	    paused = true;

	    while (running)
	    {

		if (DO_VALIDATION)
		{
		    boolean done = false;

		    while (pause)
		    {
			if (!done)
			{
			    System.out.println("Thread "
				    + Thread.currentThread().getId()
				    + ": Stoped");
			    paused = true;
			    done = true;
			}
		    }
		    paused = false;
		}

		int op = rand.nextInt(100);

		if (op < put)
		{
		    Article a = generateArticle();
		    repository.insertArticle(a);
		} else if (op < put + del)
		{
		    int id = rand.nextInt(dictSize);
		    repository.removeArticle(id);
		} else if (op < put + del + (get / 2))
		{
		    List<String> list = generateListOfWords();
		    repository.findArticleByAuthor(list);
		} else
		{
		    List<String> list = generateListOfWords();
		    repository.findArticleByKeyword(list);
		}

		count++;

	    }

	    updateOperations(count);

	}