Transfering control between main and a thread

Hi,
How to transfer control from a thread which has been initiated from main, back to main.I have a variable and if the value of the var is true the control should go back to main after performing a task the value of the var is set false and the control should be passed to the thread.
Please help me with a sample code.

hullo
control back and forth between threads????
i'm sorry i dont know if i'm getting you right.
unlike in method calls where the control returns back to calling method, threads are designed to execute independently.
and if you spawn a thread from main method both main and spawned thread would be executing simultaneously and only JVM simulates the operating system's control switching between the created threads.
we can however sleep, yield or wait on a resource.
you can do all that you were mentioning in the spwaned thread. by writing it in the run method.
skeleton code:
public class Exp {
public boolean choice;
public exp(boolean choice) {
this.choice = choice;
SpawnedThread st = new SpawnedThread(choice);
if(choice == true) {
//perform whatever
notify();
public static void main(String ar[]) {
new Exp(choice);
class SpawnedThread extends Thread {
boolean choice;
public SpawnedThread (boolean choice) {
this.choice = choice;
start();
public void run() {
if(choice == true) {
wait();
// resume the task

Similar Messages

  • Difference between main and other threads

    There are a lot many tings you cannot do n the main thread( the thread running the main Method) and other Threads how exactly do they differ?

    Why doesn't it allow running the static methods from
    main like dumpStack( )....You can run static methods from main. Do you mean the main thread or the main method?
    You can't call non-static methods directly from the main method, but that's just because it's static. You can't call non-static methods from any static method, without an instance on which to call them. Nothing special about main in that respect.

  • What's the difference between Main ( ) and Main { } ?

    I have been searching around, but still no luck finding the difference between Main ( ) and Main { }. I found that java uses ( ), and javafx uses { }. But in javafx I can still use ( ). Is there different meaning?
    Thanks.

    I am not sure what you mean, but I will take a guess.
    Remember just one thing:
    1) You can easily instantiate a class to an object in JAVAFX using a JAVA or JAVAFX class, but in JAVA you can only instantiate JAVA objects.
    (Not completely true. If you really want a headache then you can instantiate JAVAFX classes in JAVA, but it is not easy.)
    Let me give you the following class that contains some variable:
    JAVA
    class MainJava {
         int     blaInt;
         long    blaLong;
         String  someString;
         String  anotherString = "(First Bicycle) Look mom no Hands... Look Mom no teeth.";
         public MainJava() {
             // Before this contructor runs all variables will first be initializes to their default values or whatever you put in them above
             // Construct things :)
         } // END CONSTRUCTOR for MainJava
    } // END CLASS MainJavaJAVAFX
    class MainJavaFx {
         var     blaInt : Integer;
         var     blaLong : java.lang.Long; // The most usefull number made difficult in JAVAFX :(
         var     someString : String;
         var     anotherString = "(First Bicycle) Look mom no Hands... Look Mom no teeth."; // Thats nice. No need for a type :) Heaven ... I'm in Heaven
         init {
             // Before this contructor runs all variables will first be initializes to their default values or whatever you put in them above
             // Construct things :)
         } // END CONSTRUCTOR for MainJava
    } // END CLASS MainJavaFxThese 2 classes are affectively the same.
    One written in Java and one in JAVAFX.
    You already seem to know JAVA so I am going to talk in JAVAFX code from now on.
    1) To instantiate a JAVA class in JAVAFX is the same as in JAVA.
      var myNewObj = new MainJava();2) To instantiate a JAVAFX class in JAVAFX you do the following.
      var myNewObj = MainJavaFx{}; // Weeeee .. easy hey :) I likeThink of init{} as the contractor of the class in JAVAFX, because there is no more constructors in JAVAFX like in JAVA.
    Also in JAVA you can pass parameters to the class constructor, whereas in JAVAFX that is not possible anymore.
    So sad, but what JAVAFX taketh away ... JAVAFX giveth so muchth moreth ... th...
    Now witness the power of ... JAVAFX ...
    In JAVAFX you can instantiate any "var" variables when you create the object from the class.
    Therefore you do not need to pass parameters to the init constructor, most of the time you do not even need init.
    So lets say you want to give the class variable other default values in the JAVAFX class then you can do it like this:
      var myNewObj = MainJavaFx{ 
                                                   blaLong : java.lang.System.currentTimeMillis()
                                                   blaInt : 1234
                                                   someString : "Going to the Hospital I see"
                                                   anotherString : "Thorry Mom."
                                          }; // Weeeee .. easy hey :) I likeNow isn't that nice.
    Keep in mind that the init{} and postinit{} code blocks will only run if they exist after the object is created and therefore the variables will already be changed to the values you have given them when you instantiated the class.
    Cool hey :)
    You can not do that to a JAVA object, but then again if you need to change the class variables of a JAVA object then just create a constructor that takes paramaters and update the class variables in the constructor.

  • How to pass parameters between main and sub vi during parallel execution using the VI server technique?

    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Message Edited by cascao on 08-16-2005 08:42 PM
    Message Edited by cascao on 08-16-2005 08:42 PM
    Attachments:
    VI_Server_technique.vi ‏32 KB
    SubVI_1.vi ‏19 KB

    cascao wrote:
    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Luis, you can use the VI Server methods 'Set Control Value' and 'Get Control Value', as demonstrated in the attached examples.
    -Franz
    Attachments:
    VI Server.zip ‏26 KB

  • BDB read performance problem: lock contention between GC and VM threads

    Problem: BDB read performance is really bad when the size of the BDB crosses 20GB. Once the database crosses 20GB or near there, it takes more than one hour to read/delete/add 200K keys.
    After a point, of these 200K keys there are about 15-30K keys that are new and this number eventually should come down and there should not be any new keys after a point.
    Application:
    Transactional Data Store application. Single threaded process, that's trying to read one key's data, delete the data and add new data. The keys are really small (20 bytes) and the data is large (grows from 1KB to 100KB)
    On on machine, I have a total of 3 processes running with each process accessing its own BDB on a separate RAID1+0 drive. So, according to me there should really be no disk i/o wait that's slowing down the reads.
    After a point (past 20GB), There are about 4-5 million keys in my BDB and the data associated with each key could be anywhere between 1KB to 100KB. Eventually every key will have 100KB data associated with it.
    Hardware:
    16 core Intel Xeon, 96GB of RAM, 8 drive, running 2.6.18-194.26.1.0.1.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux
    BDB config: BTREE
    bdb version: 4.8.30
    bdb cache size: 4GB
    bdb page size: experimented with 8KB, 64KB.
    3 processes, each process accesses its own BDB on a separate RAIDed(1+0) drive.
    envConfig.setAllowCreate(true);
    envConfig.setTxnNoSync(ourConfig.asynchronous);
    envConfig.setThreaded(true);
    envConfig.setInitializeLocking(true);
    envConfig.setLockDetectMode(LockDetectMode.DEFAULT);
    When writing to BDB: (Asynchrounous transactions)
    TransactionConfig tc = new TransactionConfig();
    tc.setNoSync(true);
    When reading from BDB (Allow reading from Uncommitted pages):
    CursorConfig cc = new CursorConfig();
    cc.setReadUncommitted(true);
    BDB stats: BDB size 49GB
    $ db_stat -m
    3GB 928MB Total cache size
    1 Number of caches
    1 Maximum number of caches
    3GB 928MB Pool individual cache size
    0 Maximum memory-mapped file size
    0 Maximum open file descriptors
    0 Maximum sequential buffer writes
    0 Sleep after writing maximum sequential buffers
    0 Requested pages mapped into the process' address space
    2127M Requested pages found in the cache (97%)
    57M Requested pages not found in the cache (57565917)
    6371509 Pages created in the cache
    57M Pages read into the cache (57565917)
    75M Pages written from the cache to the backing file (75763673)
    60M Clean pages forced from the cache (60775446)
    2661382 Dirty pages forced from the cache
    0 Dirty pages written by trickle-sync thread
    500593 Current total page count
    500593 Current clean page count
    0 Current dirty page count
    524287 Number of hash buckets used for page location
    4096 Assumed page size used
    2248M Total number of times hash chains searched for a page (2248788999)
    9 The longest hash chain searched for a page
    2669M Total number of hash chain entries checked for page (2669310818)
    0 The number of hash bucket locks that required waiting (0%)
    0 The maximum number of times any hash bucket lock was waited for (0%)
    0 The number of region locks that required waiting (0%)
    0 The number of buffers frozen
    0 The number of buffers thawed
    0 The number of frozen buffers freed
    63M The number of page allocations (63937431)
    181M The number of hash buckets examined during allocations (181211477)
    16 The maximum number of hash buckets examined for an allocation
    63M The number of pages examined during allocations (63436828)
    1 The max number of pages examined for an allocation
    0 Threads waited on page I/O
    0 The number of times a sync is interrupted
    Pool File: lastPoints
    8192 Page size
    0 Requested pages mapped into the process' address space
    2127M Requested pages found in the cache (97%)
    57M Requested pages not found in the cache (57565917)
    6371509 Pages created in the cache
    57M Pages read into the cache (57565917)
    75M Pages written from the cache to the backing file (75763673)
    $ db_stat -l
    0x40988 Log magic number
    16 Log version number
    31KB 256B Log record cache size
    0 Log file mode
    10Mb Current log file size
    856M Records entered into the log (856697337)
    941GB 371MB 67KB 112B Log bytes written
    2GB 262MB 998KB 478B Log bytes written since last checkpoint
    31M Total log file I/O writes (31624157)
    31M Total log file I/O writes due to overflow (31527047)
    97136 Total log file flushes
    686 Total log file I/O reads
    96414 Current log file number
    4482953 Current log file offset
    96414 On-disk log file number
    4482862 On-disk log file offset
    1 Maximum commits in a log flush
    1 Minimum commits in a log flush
    160KB Log region size
    195 The number of region locks that required waiting (0%)
    $ db_stat -c
    7 Last allocated locker ID
    0x7fffffff Current maximum unused locker ID
    9 Number of lock modes
    2000 Maximum number of locks possible
    2000 Maximum number of lockers possible
    2000 Maximum number of lock objects possible
    160 Number of lock object partitions
    0 Number of current locks
    1218 Maximum number of locks at any one time
    5 Maximum number of locks in any one bucket
    0 Maximum number of locks stolen by for an empty partition
    0 Maximum number of locks stolen for any one partition
    0 Number of current lockers
    8 Maximum number of lockers at any one time
    0 Number of current lock objects
    1218 Maximum number of lock objects at any one time
    5 Maximum number of lock objects in any one bucket
    0 Maximum number of objects stolen by for an empty partition
    0 Maximum number of objects stolen for any one partition
    400M Total number of locks requested (400062331)
    400M Total number of locks released (400062331)
    0 Total number of locks upgraded
    1 Total number of locks downgraded
    0 Lock requests not available due to conflicts, for which we waited
    0 Lock requests not available due to conflicts, for which we did not wait
    0 Number of deadlocks
    0 Lock timeout value
    0 Number of locks that have timed out
    0 Transaction timeout value
    0 Number of transactions that have timed out
    1MB 544KB The size of the lock region
    0 The number of partition locks that required waiting (0%)
    0 The maximum number of times any partition lock was waited for (0%)
    0 The number of object queue operations that required waiting (0%)
    0 The number of locker allocations that required waiting (0%)
    0 The number of region locks that required waiting (0%)
    5 Maximum hash bucket length
    $ db_stat -CA
    Default locking region information:
    7 Last allocated locker ID
    0x7fffffff Current maximum unused locker ID
    9 Number of lock modes
    2000 Maximum number of locks possible
    2000 Maximum number of lockers possible
    2000 Maximum number of lock objects possible
    160 Number of lock object partitions
    0 Number of current locks
    1218 Maximum number of locks at any one time
    5 Maximum number of locks in any one bucket
    0 Maximum number of locks stolen by for an empty partition
    0 Maximum number of locks stolen for any one partition
    0 Number of current lockers
    8 Maximum number of lockers at any one time
    0 Number of current lock objects
    1218 Maximum number of lock objects at any one time
    5 Maximum number of lock objects in any one bucket
    0 Maximum number of objects stolen by for an empty partition
    0 Maximum number of objects stolen for any one partition
    400M Total number of locks requested (400062331)
    400M Total number of locks released (400062331)
    0 Total number of locks upgraded
    1 Total number of locks downgraded
    0 Lock requests not available due to conflicts, for which we waited
    0 Lock requests not available due to conflicts, for which we did not wait
    0 Number of deadlocks
    0 Lock timeout value
    0 Number of locks that have timed out
    0 Transaction timeout value
    0 Number of transactions that have timed out
    1MB 544KB The size of the lock region
    0 The number of partition locks that required waiting (0%)
    0 The maximum number of times any partition lock was waited for (0%)
    0 The number of object queue operations that required waiting (0%)
    0 The number of locker allocations that required waiting (0%)
    0 The number of region locks that required waiting (0%)
    5 Maximum hash bucket length
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock REGINFO information:
    Lock Region type
    5 Region ID
    __db.005 Region name
    0x2accda678000 Region address
    0x2accda678138 Region primary address
    0 Region maximum allocation
    0 Region allocated
    Region allocations: 6006 allocations, 0 failures, 0 frees, 1 longest
    Allocations by power-of-two sizes:
    1KB 6002
    2KB 0
    4KB 0
    8KB 0
    16KB 1
    32KB 0
    64KB 2
    128KB 0
    256KB 1
    512KB 0
    1024KB 0
    REGION_JOIN_OK Region flags
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock region parameters:
    524317 Lock region region mutex [0/9 0% 5091/47054587432128]
    2053 locker table size
    2053 object table size
    944 obj_off
    226120 locker_off
    0 need_dd
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock conflict matrix:
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Locks grouped by lockers:
    Locker Mode Count Status ----------------- Object ---------------
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Locks grouped by object:
    Locker Mode Count Status ----------------- Object ---------------
    Diagnosis:
    I'm seeing way to much lock contention on the Java Garbage Collector threads and also the VM thread when I strace my java process and I don't understand the behavior.
    We are spending more than 95% of the time trying to acquire locks and I don't know what these locks are. Any info here would help.
    Earlier I thought the overflow pages were the problem as 100KB data size was exceeding all overflow page limits. So, I implemented duplicate keys concept by chunking of my data to fit to overflow page limits.
    Now I don't see any overflow pages in my system but I still see bad bdb read performance.
    $ strace -c -f -p 5642 --->(607 times the lock timed out, errors)
    Process 5642 attached with 45 threads - interrupt to quit
    % time     seconds  usecs/call     calls    errors syscall
    98.19    7.670403        2257      3398       607 futex
     0.84    0.065886           8      8423           pread
     0.69    0.053980        4498        12           fdatasync
     0.22    0.017094           5      3778           pwrite
     0.05    0.004107           5       808           sched_yield
     0.00    0.000120          10        12           read
     0.00    0.000110           9        12           open
     0.00    0.000089           7        12           close
     0.00    0.000025           0      1431           clock_gettime
     0.00    0.000000           0        46           write
     0.00    0.000000           0         1         1 stat
     0.00    0.000000           0        12           lseek
     0.00    0.000000           0        26           mmap
     0.00    0.000000           0        88           mprotect
     0.00    0.000000           0        24           fcntl
    100.00    7.811814                 18083       608 total
    The above stats show that there is too much time spent locking (futex calls) and I don't understand that because
    the application is really single-threaded. I have turned on asynchronous transactions so the writes might be
    flushed asynchronously in the background but spending that much time locking and timing out seems wrong.
    So, there is possibly something I'm not setting or something weird with the way JVM is behaving on my box.
    I grep-ed for futex calls in one of my strace log snippet and I see that there is a VM thread that grabbed the mutex
    maximum number(223) of times and followed by Garbage Collector threads: the following is the lock counts and thread-pids
    within the process:
    These are the 10 GC threads (each thread has grabbed lock on an avg 85 times):
      86 [8538]
      85 [8539]
      91 [8540]
      91 [8541]
      92 [8542]
      87 [8543]
      90 [8544]
      96 [8545]
      87 [8546]
      97 [8547]
      96 [8548]
      91 [8549]
      91 [8550]
      80 [8552]
    VM Periodic Task Thread" prio=10 tid=0x00002aaaf4065000 nid=0x2180 waiting on condition (Main problem??)
     223 [8576] ==> grabbing a lock 223 times -- not sure why this is happening…
    "pool-2-thread-1" prio=10 tid=0x00002aaaf44b7000 nid=0x21c8 runnable [0x0000000042aa8000] -- main worker thread
       34 [8648] (main thread grabs futex only 34 times when compared to all the other threads)
    The load average seems ok; though my system thinks it has very less memory left and that
    I think is because its using up a lot of memory for the file system cache?
    top - 23:52:00 up 6 days, 8:41, 1 user, load average: 3.28, 3.40, 3.44
    Tasks: 229 total, 1 running, 228 sleeping, 0 stopped, 0 zombie
    Cpu(s): 3.2%us, 0.9%sy, 0.0%ni, 87.5%id, 8.3%wa, 0.0%hi, 0.1%si, 0.0%st
    Mem: 98999820k total, 98745988k used, 253832k free, 530372k buffers
    Swap: 18481144k total, 1304k used, 18479840k free, 89854800k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    8424 rchitta 16 0 7053m 6.2g 4.4g S 18.3 6.5 401:01.88 java
    8422 rchitta 15 0 7011m 6.1g 4.4g S 14.6 6.5 528:06.92 java
    8423 rchitta 15 0 6989m 6.1g 4.4g S 5.7 6.5 615:28.21 java
    $ java -version
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
    Maybe I should make my application a Concurrent Data Store app as there is really only one thread doing the writes and reads. But I would like
    to understand why my process is spending so much time in locking.
    Can I try any other options? How do I prevent such heavy locking from happening? Has anyone seen this kind of behavior? Maybe this is
    all normal. I'm pretty new to using BDB.
    If there is a way to disable locking that would also work as there is only one thread that's really doing all the job.
    Should I disable the file system cache? One thing is that my application does not utilize cache very well as once I visit a key, I don't visit that
    key again for a very long time so its very possible that the key has to be read again from the disk.
    It is possible that I'm thinking this completely wrong and focussing too much on locking behavior and the problem is else where.
    Any thoughts/suggestions etc are welcome. Your help on this is much appreciated.
    Thanks,
    Rama

    Hi,
    Looks like you're using BDB, not BDB JE, and this is the BDB JE forum. Could you please repost here?:
    Berkeley DB
    Thanks,
    mark

  • Transfering data between sap and biw

    Hello everyone,
    I am new biw and am trying to establish communication
    between r/3 and biw. I have created logical systems in
    both and I am able to replicate data sources but
    when I create a infopackage and schedule a job I am not having much success in transfering the data from SAP into biw. I am getting the below warning messages in the monitor. Please help me understand the error.
    Error details:
    -> Overall status: Missing messages or warnings
       -> Requests (messages): Everything OK
          -> Data request arranged
          -> Confirmed with: OK
       -> Extraction (messages): Missing messages
          -> Missing message: Request received
          -> Missing message: Number of sent records
          -> Missing message: Selection completed
       -> Transfer(IDocs and TRFC): Missing messages or
    warning
          -> Request IDoc: sent, not arrived; Data passed
    to port OK
       -> Processing (data packet): No data
    Thanks heaps in advance.
    K

    Hi,
    R u found these idocs in ALE inbox for the source system that r not updated.
    if so we can process the Idoc's manually by pressing the process manually push button in the status tab of the monitor..
    else u can monitor those idocs in Tcode - BD87.
    regards-
    Siddhu
    Message was edited by: sidhartha

  • Difficulties transferring files between Lion and Leopard

    Hello all-
    The short: Our two computers running Leopard can transfer files across our home network to all other computers with no problems, and can grab files from other computers with no problems. Our new iMac Lion can't do any of that.
    The long: We have recently purchased a new iMac (Lion 10.7.3), and have connected our old 2006 iMac (Leopard 10.5.8) to the TV and stereo (and directly to our B/G/N Airport Extreme) for use primarily as a media server. We also have an MBP (Leopard 10.5.8). All three computers are shared on a home network, and I believe I have set up the sharing and permissions correctly.
    From both Leopard computers I can transfer files back and forth, as well as access files on the other and bring them over. Additonally, from both Leopard computers I can do the same while accessing the iMac Lion- either transfer files to it, or connect to it and bring files over. This is what leads me to believe that the sharing is set up correctly.
    However, when I am on the iMac Lion and try to do any of these processes with either of the Leopards, I get a confusing set of steps and ultimately, failure.
    First, I when I try to transfer or copy a file I get a window asking:
    Finder wants to make changes. type your password to allow this.
    It automatically fills in the admin username for the iMac Lion. While it is waiting for me to enter the password, a progress bar pops up stating that it is "Preparing to copy to "(Location)", and then I enter the password.
    As soon as I enter the password, a new window tells me that:
    A newer item named “(filename here)” already exists in this location. Do you want to replace it with the older one you’re moving? (note- this 'file' has just been created, it is the 'newer item', and it contains zero kb of information).
    and gives me three options: Keep both files, Stop, or Replace
    If I choose Keep both files it immediately begins duplicating the empty version of the file and it will make thousands of duplicates in mere seconds. I must kill Finder in order to make it stop.
    If I choose Stop the process simply quits.
    If I choose Replace it says The operation can’t be completed because an item with the name “” already exists. (the quotation marks are exactly like that with no filename inbetween).
    Summary: I am at a loss as to how to proceed. I cannot seem to find why the iMac Lion cannot do anything to the Leopards, while the Leopards seem to have full abilities, even with the Lion. I have tried turning off AFP and turning on SMB to no avail.
    Any advice would be greatly appreciated. It is incredibly helpful to be able to share files between our systems, as the iMac Leopard has PPC programs that I cannot install or run on Lion, and so I keep them around in case I need them. Plus, my wife uses the MBP Leopard for specialized research and many of the programs they use do not run with Lion.
    Message was edited by: Jeff Sorley

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Transfering docs between pages and word

    I recently purchased a macbook air to finish writing a manuscript that I had been writing in word on my macbook pro.
    It was automatically transferred into pages and now I can't get it back into word.
    Help!

    Pages is not a MS Word clone, and does not work in the native .docx document format. Rather, it translates an opened Word document into the Pages document architecture. You are not guaranteed that this translation process, also used for export back to Word, will be accurate, or match the original Word content.
    If I recall, Microsoft relaxed their licensing, and you are allowed to install Office for Mac 2011 on up to five computers that you own. If it were me, I would work on that original MS Word .docx document exclusively in MS Word to avoid any unplanned Pages content anomalies that cost you time.

  • Would like solution for Copy Control Between Quotation and Sales Order

    Hi Expert,
    My customer requirement are the following topic:
    1. need condition type (item) to input FIX AMOUNT in Quotation
    2. once copy Quotation to Sales Order Condition have to copy not depend on quantity
    for example
    QUOTATION#1
    =item#1 quantity 20 PC
       =condition#1 fix amount 100 USD
    ================================ copy Quotation to SO
    SO#1
    =item#1 quantity 2 PC
       =condition#1 fix amount 100 USD <-----  full copy and not depend on quantity
    But on my setting I get Sales Order 2 PC with condition#1 10 USD ....
    I need the way to Configure or Customize (need configure if have)
    Many thanks for Advise me
    Best Regard,
    Atom
    Edited by: korakoj chantarasupawong on Mar 25, 2011 7:28 AM

    Thank you very much,
    for my customer requirement for this condition is handing charge.
    This handing charge is agreement between my customer and thier customer to keep fix amount per sales order.
    such as 1 quotations per item has handing charge 100 usd per 10 TON product
    if thier customer would like to split delivery (open sales order) 10 times, they have to earn 100 usd / 10 times.
    so this is the meaning for this condition.
    so
    QUO#1
    item#1
    - mat A 10 TON (handing charge 100 USD per 1 sales order)
    - mat B 20 TON (handing charge 20 USD per 1 sales order)
    --> copy to sales order 1
    SO#1
    item#1
    - mat A 2 TON (handing charge 100 USD per 1 sales order)
    - mat B 1 TON (handing charge 20 USD per 1 sales order)
    --> copy to sales order 2
    SO#2
    item#1
    - mat A 8 TON (handing charge 100 USD per 1 sales order)
    - mat B 19 TON (handing charge 20 USD per 1 sales order)
    some thing like that's
    many thank expert
    please carry on advise me thanks

  • Transfering Music Between PC and Mac

    I have a main home computer, a PC running windows 7 professional, and I have a new Macbook Air. I want to save space on my Air by using an external HDD, but I am having issues getting everything to transfer to my Mac.
    One issue I am currently experiencing is that when ever I try to export my playlists, it only exports one playlist called "Music" and it contains about 10 songs of my current library of over 2500 songs. I found a complicated video online on how to transfer an individual playlist, but I have 50+ playlists, and this would take hours.
    Another problem I have is that every time I add a song to my main computer (Not purchased through iTunes, I have 1,000s of CDs), I have to find that one song/album on the HDD, transfer it to the external HDD, and then in iTunes on my Macbook Air I have to find that song again and add it to the library individually.
    Is there any way to use iCloud or something else to help ease these problems?
    Thank you very much in advance for all answers.

    I don't think you can with firewire, but here is an Apple document stating ways to transfer data from a PC to a Mac.
    Zeb

  • Transferring files between iMac and Mac Air

    My daughter gifted me a new but older Mac Air (mid 2011). I tried to transfer files from my existing iMac (2008) to Mac Air using migration assistant, but the connection never happens. What am I doing wrong?

    It sounds like you were attemting the transfer over a network.  Try creating a Time Machine backup (or updating the one you have) and use that with Migration Assistant.  It is faster and more reliable.  You need a Time Machine backup anyway so if you don’t have on this is the time to create one.  Create one (or more) for each machine.
    For more about backups
    Time Machine Basics: http://support.apple.com/kb/ht1427
    Most commonly used backup methods: 
    https://discussions.apple.com/docs/DOC-3045
    Methodology to protect your data. Backups vs. Archives. Long-term data protection
    https://discussions.apple.com/docs/DOC-6031

  • Transferring Albums between iMac and iPad Air iPhoto's

    Just bought an iPad Air and it set up fine and synced with all the old iPad info of my iPad 1. On iPhoto however, it only imported the albumns that I had on the old iPad and I could not import an album I have on my iMac in iPhoto onto the new iPad. Any suggestions.

    Hi
    I have an imac running iphoto 7.1.5 and have updated my itunes to the latest version 11.1.3, my opp system is Snow Leopard 10.6.8.
    When i sync my ipad via usb cable, my iphoto 7.1.5 loads and i can transfer files from my ipad to the imac, but not the other way round.  I tried to follow your instructions above by using itunes but after clicking on the ipad tab there is no iphoto tab appearing.  Is it because my iphoto version is so old or am I doing something stupid,  i would appreciate some help
    Thanks

  • Transfering data between sap and BI

    Hi All,
    Our landscape is both BW and R/3 dev server is same. But R/3 guyz are working in client:300 and BW guyz are working in client :400. I estlablished logical connection bn R/3 and BI . Now when i am loading payroll data from 300 client(R/3) to 400 client(BI 7.0), it is giving error as below.
    Error details:
    -> Overall status: Missing messages or warnings
    -> Requests (messages): Everything OK
    -> Data request arranged
    -> Confirmed with: OK
    -> Extraction (messages): Missing messages
    -> Missing message: Request received
    -> Missing message: Number of sent records
    -> Missing message: Selection completed
    -> Transfer(IDocs and TRFC): Missing messages or
    warning
    -> Request IDoc: sent, not arrived; Data passed
    to port OK
    -> Processing (data packet): No data
    When i check the status of the source system from the enviroment-->trans RFC-in the source system it is giving message as 'Nothing was selected'.
    Pls help me out.
    Thanks in Advance,
    Bala

    Hi
    Check in RSA3 for the data records
    If no data is coming here,problem is in R/3
    If data coming here ,then  check in PSA
    If data records are red...check which record is red and try to rectify manually after deleting the request in data target
    Hope this helps
    Regards
    N Ganesh

  • Transferring captions between iPad and MacBook Pro using iPhoto

    I have a new iPad3 on which I loaded the iPhoto App. When travelling, I load my photos from my Nikon D90 to the iPad. I then go into edit and add a caption. Once home, I hook my iPad up to my MacBook Pro (2007)(running Lion)(iphoto '11 v9.2.3) and the photos transfer (using iPhoto) to my MacBook without the captions. Is there a way to transfer the captions from the iPad to the MacBook Pro and vice versa along with the photos?

    You cannot do it with AirDrop. Following quote is from iOS: Use AirDrop to wirelessly share content
    You can't use AirDrop on iOS to share with OS X users, and OS X users can't use AirDrop to share with iOS devices.
    You can do it via Photo Stream iCloud: My Photo Stream FAQ
    Or as I do, via USB cable: iOS: Import personal photos and videos from iOS devices to your computer
    And there are 3rd party apps such as http://www.photosync-app.com

  • Troubles of transfering parameter between jsp and flash

    I have a problem in programming. I can't actualize the
    parameter's transfer from a jsp file to my flash. It could run
    normally when I first design this program some weeks ago. But now,
    it can't work! I don't know why.
    My flash player's edition is 7. The flash code is :
    var id;
    var flash;
    _root.onLoad = function() {
    loadVariables("
    http://localhost/exonline/flashtest/jspfile/flash.jsp","_root","POST");
    _root.onData = function(result) {
    _root.reply_clientData = id + flash;
    The jsp code is:
    out.println("&id=this is flashid from
    session&&flash=flashfilename &");
    I have completed the security settings following the
    instruction on the web that always allow and adding the flash file
    into trust fields, but it still don't work. Who can help me? Thank
    you very much!

    Is there anybody can help me?

Maybe you are looking for

  • Download 9i R2 Fails

    I am trying to download Oracle 9i R2 (v 9.2.0.1 for Windows XP). There are three download files. Disk1 downloads but then I can not open it. It says that the compressed folder is invalid or corrupt. I've tried this several times over the last few day

  • Problem with UIShell

    Hi ADF Experts, We are using dynamic tab shell in out ADF Application, If the keep multiple tab open and ideal ,let say I have open 10 tab ,and kept the system ideal for some 10 min time. Again if I try to switch between the tab.It is taking lot of t

  • Export to PDF changing font size

    Hi, I have gone through the posts on this topic and was wondering if anyone has a formula to predict what will happen to the text or what looks best in PDF? I am using Arial 10,11 and 12 on some reports and Times New Roman 8, 9, 10 and 11 on others.

  • Passing IR column value to Oracle package

    All, I am trying to call an Oracle package from APEX and need to pass value of a IR column in that package. I have tried saying :ADJ_ID but i dont think so its pasing anything to backend. Here are steps. 1. User runs IR 2. There is a column that I ha

  • Re: Portege R500: Contros button doesn't work after installing update

    After installing the most recent version of Toshiba's Value Added Package, the two buttons (toshiba assist and backlight on/off) do not work properly: they open instead a firefox browser window. I assume there is something to configure in the "optimi