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: Wed Dec 19 09:53:53 CET 2007
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/07/12 19:09:53

    Modified: jop/java/target/src/test/cmp Sync2.java
    Log:
    no message


    Revision Changes Path
    1.2 jop/java/target/src/test/cmp/Sync2.java

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

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

    Index: Sync2.java
    ===================================================================
    RCS file: /cvsroot/9914pich/jop/java/target/src/test/cmp/Sync2.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- Sync2.java 22 Nov 2007 15:39:37 -0000 1.1
    +++ Sync2.java 19 Dec 2007 08:53:53 -0000 1.2
    @@ -8,6 +8,7 @@

    import com.jopdesign.sys.Const;
    import com.jopdesign.sys.Native;
    +import jbe.LowLevel;
    import cmp.IntegerClass;

    public class Sync2 {
    @@ -29,12 +30,19 @@

    while(true)
    {
    - for(int i = 0; i<100; i++);

    - synchronized(lock1)
    - {
    +// synchronized(lock1)
    +// {
    print_02d(whoAmI.number);
    - }
    +// }
    +
    + for(int i = 0; i<100; i++);
    +
    +// synchronized(lock1)
    +// {
    +// whoAmI.number = cpu_id;
    +// }
    +
    }
    }
    else
    @@ -43,7 +51,7 @@
    {
    while(true)
    {
    - for(int i = 0; i<10; i++);
    + for(int i = 0; i<31; i++);

    synchronized(lock1)
    {
    @@ -55,7 +63,8 @@
    {
    while(true)
    {
    - for(int i = 0; i<1; i++);
    + for(int i = 0; i<7; i++);
    +
    synchronized(lock1)
    {
    whoAmI.number = cpu_id;



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