LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Thu May 31 01:13:20 CEST 2007
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/07/05 31:01:13

    Modified: jop/java/target/src/test/gcinc Concurrent.java
    Log:
    now with three threads


    Revision Changes Path
    1.2 jop/java/target/src/test/gcinc/Concurrent.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/gcinc/Concurrent.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: Concurrent.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/test/gcinc/Concurrent.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- Concurrent.java 28 May 2007 18:09:22 -0000 1.1
    +++ Concurrent.java 30 May 2007 23:13:19 -0000 1.2
    @@ -13,11 +13,27 @@
    */
    public static void main(String[] args) {

    - a = new SimpVector(100);
    - b = new SimpVector(25);
    + a = new SimpVector(25);
    + b = new SimpVector(100);
    c = new SimpVector(999);

    - new RtThread(2, 10000) {
    + new RtThread(2, 100000) {
    + public void run() {
    + for (;;) {
    + c.run();
    + waitForNextPeriod();
    + }
    + }
    + };
    + new RtThread(3, 34560) {
    + public void run() {
    + for (;;) {
    + b.run();
    + waitForNextPeriod();
    + }
    + }
    + };
    + new RtThread(4, 23450) {
    public void run() {
    for (;;) {
    a.run();



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.