Readers Writers problem and Synchronized doubts

I made this code for implementing some Lock because I have to permit the write/read action on shared file between different threads. I would like to let more than one thread reading at the same time and just one for the writing
This is my code, it's in italian but in english the class name would be AccessManager
import java.io.Serializable;
public class GestoreAccessi implements Serializable{
//number of reader
private int lettori= 0;
//flag for someone writing
private boolean scrittura= false;
//number of writer waiting
private int scrittoriAttesa = 0;
private String nome;
//Il gestore accessi prende un nome
public GestoreAccessi(String nom) {
nome = nom;
//Blocco per la lettura -- Lock for Reading
public synchronized void lockRead() {
try {
//Fino a che c'e' qualcuno in scrittura o processi che aspettano per la scrittura mi metto in attesa -- If ther is some thread writing or waiting for write
while (scrittura || scrittoriAttesa > 0) {
wait();
//Altrimenti aumento la variabile dei thread in lettura -- Add one thread reading
++lettori;
} catch (InterruptedException ex) {
//Fine del processo di lettura -- Finish reading
public synchronized void unlockRead() {
--lettori;
// solo gli scrittori sono in attesa e uno soltanto deve essere svegliato
if (lettori == 0) {
notifyAll();
//Blocco per la scrittura -- Start Writing
public synchronized void lockWrite() {
++scrittoriAttesa;
//Fino a che ci sono lettori o qualcuno che scrive aspetto -- if there are readers o someone writing
while (lettori > 0 || scrittura) {
try {
wait();
} catch (InterruptedException ex) {
--scrittoriAttesa;
//Altrimenti inizio il processo di lettura -- Start the process of reading
scrittura = true;
//Fine del processo di scrittura
public synchronized void unlockWrite() {
scrittura = false;
notifyAll(); // sblocca uno o piu' lettori o uno scrittore
Before all critical part I create a GestoreAccessi object and invoce the .lock.. method and finish the critical part the .unlock.. Do you think it's a good way to solve the problem?
I have some doubts on the multiple reading at the same time. I read on synchronized: "First, it is not possible for two invocations of synchronized methods on the same object to interleave. When one thread is executing a synchronized method for an object, all other threads that invoke synchronized methods for the same object block (suspend execution) until the first thread is done with the object.
Second, when a synchronized method exits, it automatically establishes a happens-before relationship with any subsequent invocation of a synchronized method for the same object. This guarantees that changes to the state of the object are visible to all threads."
It's possible to two different thread read at the same time? The .lockRead() method is synchronized: if one thread has acess in a critical part it takes the lock and no other thread would be able to have an access on the same part?! How can i do this? I have not to declare synchronized the read method?
Please help me and sorry for my bad english!!
Bless from Italy

>
I made this code for implementing some Lock because I have to permit the write/read action on shared file between different threads. I would like to let more than one thread reading at the same time and just one for the writing
>
Multiple threads and even applications can read the same file at the same time; it is writing that is problematic.
There is nothing in what you posted that even shows any 'file' manipulation so no comments can be made about that.
It looks like you took those quotes from this Java Tutorial Page on Synchronizeds Methods
http://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html
Those quotes are accurate as far as synchronizing a particular instance is concerned but that would not prevent some other code from trying to read/write the same file. But again, you code doesn't even include any file-related objects that you are trying to control access to.
See the Java Tutorial section on 'Lock Objects'
http://docs.oracle.com/javase/tutorial/essential/concurrency/newlocks.html

Similar Messages

  • Zone setup in solaris 10 some problem and doubts

    Hi Experts
    I have small problem and doubt
    If i login to global zone ... "zlogin -C -e @ testzone" how to logout from global zone......
    testzone# when i press exit button it is comeing to zone login prompt
    zone1 console login: @ ( from Zone login prompt i want to come
    back to my normal solaris prompt i tried with pressing "shift+@ "
    nothing is happening could you please tell me how to come out from zonelogin prompt ................
    one more query after installation we are using " zlogin -C -e testzone "
    is it rquire this same login commmand we have to use every time or only one time after installation of zone. we can use
    "zlogin testzone " also what is difrrent these two... if you use " zlogin -C -e testzone " then only it will prompt for locale and language settings......
    i have seen it is asking for locale setting and language ...... and it is asking only one time but if you use "zlogin testzone" it won't ask any such seetings......( only one time it will ask after the zone configuration)
    Thanks
    RK

    This particular forum is for issues with applications, daemons
    and applets that provide reports to you about a system state or condition.
    Sun Remote Servies and Net Connect, are some of those reporting services
    that you would subscribe to from Sun Support.
    This is NOT a forum for you to report about an issue.
    None of your postings, thus far, are within the scope of this particular forum.
    For example, this latest thread would be better suited in the forum for Solaris Zones.
    Put some planning into your posts and place each one into its appropriate place.

  • Adobe Photoshop Lightroom has encountered a problem and needs to close. (ver 1.4.1)

    I completed a search for this problem here and other forums, and found very useful information, however, I still need help. My laptop is an HP Pavillion dv1000, Intel Centrino, Windows XP, 1.24G of RAM; Camera is a Canon 5D, shooting JPEG only.
    After a couple of weeks enjoying a vacation in the Caribbean, it was time to load all the new pics in the computer. I removed the card from my camera and using windows explorer, downloaded all pics in MyPictures folder. I created a new folder for this trip, and while I was there, I decided to reorganize several folders from previous trips. I renamed and moved folders around, deleted pictures, etc. (I believe that all the changes that I made created my problem.)
    Once I finished all the changes with my folders, I launched Lightroom (ver 1.4.1) with the idea of synchronizing the folders and start working on my new pictures. After apx 8 seconds, I got the message: Adobe Photoshop Lightroom has encountered a problem and needs to close.  We are sorry for the inconvenience.
    After a google search, I found a lot of potential answers to my problem, including this one, which I tried:
    "It might also be worth trying a temporary test catalog, just to see whether it's specific to that catalog. To do so, go to File menu > New Catalog and create a new catalog somewhere easy - Desktop perhaps - and just try importing a few photos into that test catalog and see if you can get it to freeze. I'm wondering if the catalog's been damaged slightly by that initial unexpected close, and if so, we'll see if we can get that sorted out for you."
    I did exactly that (created a test catalog) and I don't get the error. I am not clear on what does that mean. Could you help me understand it? What do I need to do to use my old catalog? Is it damaged? How can I fix it? Did I loose all the work that I did in my previous pictures?
    If I go back to my original catalog, I still get the error.
    Thank you in advanced for your assistance.
    Tony

    Tony,
    Here's something you might try:
    Create a new, empty catalogue and try File->Import from catalog... and specify your broken one as input. With luck the damage will be left behind.
    If that doesn't work, try deleting or renaming your preferences file. Look here for its location.
    And if that doesn't work, try deleting or renaming your presets folder. See that same website for details.
    Let us know how you make out.
    Hal

  • Adobe Audition has encountered a problem and needs to close.

    I have been using Audition 2.0 on this computer for quite some time and suddenly now when I open it, I get the cryptic error dialogue:
    "Adobe Audition has encountered a problem and needs to close.  We are sorry for the inconvenience.  If you were in the middle of something, the information you were working on might be lost.  For more information about this error, click here."
    When I click for more information, it's something useless like:
    AppName: audition.exe    AppVer: 2.0.5306.2    ModName: unknown
    ModVer: 0.0.0.0   Offset: 65726168
    Nothing on my computer has changed.  There are no viruses.  I have not added any new audio plug-ins.  I am completely up to date with all critical Windows XP SP3 updates and none have been downloaded and installed recently anyway.
    I searched the knowledgebase and found a document that suggesting many things to try.  I tried them all, including running the Windows hard disk "check disk" tool with options to fix file system errors and recover bad sectors. I also defragmented the hard drive.  Lastly, I completely uninstalled Audition, then  manually deleted any remaining files, including registry entries as suggested in another knowledgebase article.
    I then re-installed Audition 2.0 and it did exactly the same thing!  This it maddening.  Now it gets even more interesting.  I discovered that if I start up the
    Adobe ExtendScript Toolkit that Adobe Audition installed also, then try to launch Audition from the toolkit, IT STARTS CORRECTLY!  I can then close the toolkit and use it like normal.  Weird work-around.
    What the heck could possibly be going on?  Anyone have any ideas?  I've attached the error log file that is generated by the error but I doubt it will be of much help.
    Thanks!
    Steve in Chicago

    stevefoobar2: I may have found a solution for you.
    I had the same thing happen to me today. I was using Audition 2 this morning without any problems. But this afternoon, it started giving me the exact same error with no apparent reason. Nothing on my system had changed.
    So I uninstalled it and installed Audition 3 in its place. Audition 3 continued to have the same problem that Audition 2 had, so we can assume that this is not something that was changed between versions.
    But my attention was brought to the fact that you and I are both running Windows XP SP3 fully up-to-date. So I thought I'd try seeing it from the angle of a problem with Windows instead of Audition, and see if I didn't get a better result -
    First, I logged on to Windows as Administrator. This may or may not be required, but you'll probably want to do it just in case (you'll see what I mean later). At this point, Audition still crashed the same way when I opened it, so I moved on to my next troubleshooting strategy -
    Instead of opening Audition directly, I right-clicked the Audition icon and selected "Run as..." This may seem odd since I was already logged in as Administrator, but it proved to be the solution in my case.
    In the "Run As" diolog, there are two main options: run as current user, or run as another user.
    Since I was already logged in as Administrator, I could safely select the first option (run as current user). But here's the catch: selecting the first option allowed me to UNcheck the box underneath that says "Protect my computer and data from unauthorized program activity" (see the attached picture)
    Audition opened without any problems when I did this.
    This makes me think that one of the Windows security features suddenly decided to block something that Audition was trying to do, crashing the program in the process. By turning off this security feature, the problem was solved. And I only had to do it once. Every time afterwards, Audition has opened without any problems when I simply open it from my desktop. Perhaps Windows now remembers not to block Audition in the future.
    However, I have not restarted my computer yet, or logged off as Administrator. You may need to tweak this solution if you plan to do either of these things. You may end up having to "Run as" Audition every time you restart your computer or log off. You may even need to select the SECOND option, and run the program as Administrator with the appropriate password.
    Anyway, this was the only post I could find on Adobe.com concerning this problem, so I thought I'd post my solution in case it helped someone else.

  • Adobe Flash Player Update Service 11.3 r300 has encountered a problem and needs to close.  We are

    I get following message:
      Adobe® Flash® Player Update Service 11.3 r300 has encountered a problem and needs to close. We are sorry for the inconvenience.
    How can I solve this?

    People,
    Listen. This service is, has been and seemingly will be: FREE. So while emotions are running on the hot side of the guage, let's remember; it is FREE. Adobe owes no one anything. Now who's to blame, really? We, the people are to blame. Why? Because everyone has been ok with the fact that one company essentially designed and released a technology for streaming from the net. One company. And almost all of us are using this one company's technology to stream; for FREE.
    But now we are not ok with it when, after we are prompted to update, we have the issue of it not working? We all never saw the ridiculously high potential for this one company to screw things up, intentionally or otherwise? What the ramifications, that we are now experiencing, might be? Nah, we just took it for granted that we would continue to be served. Well the serve came, everyone. Mistake or otherwise.
    It's like this country [US], up until four-years ago. Everyone was either running around with snow shovels and hefty garbage bags to gather all the money they were making or sailing the seas of expectation and an, 'I am out there to get mine' attitude, and then the sh*t hits the fan and now people are complaining? About the very system until four years ago was spoon feeding them poolside with mai-tai's? While it was crushing everyone else in the known world?
    No doubt it seems incredulous that a multi-billion dollar company has an IT department that would include in an update, for their own software, that would be inconducive to working. No doubt. But keep in mind: we are all either using browsers by Apple or MS. Anything happens to these browsers, including a virus or anything else that threatens our use of them and...?
    So climb off the haughty, 'I deserve' crap and walk on the solid ground of trying to resolve this issue here at Adobe and around the net. If we were to band together, as the 99%, we could solve this, no problem. But then that holds true with resolving this fictitious economic downturn nonsense, that we solidly take for truth at face value, because our mainstream media says so. But no other species on this rock flying through space would know what the f*ck we were talking about.

  • Yoga 13 - Lot's of problems and no answers from Lenovo

    Hi everyone
    Just wanted to post my experiences with the Yoga 13 issues and explain the problems and what Lenovo is doing (or mostly not doing) in relation to these. I have been dealing with this for 9 weeks now already, for the first 7 weeks I remained quite calm with them about it. After that I’m afraid the situation has had to be escalated considerably. I won’t go into the full details of everything that has happened as it would take all day. Suffice to say that Lenovo have been terrible to deal with, lied continually and ignore anything they don’t want to do (much like on this forum).
    I appreciate that not everyone seems to be having all of these issues. But each of them is widely reported on Lenovo’s forums here. Lenovo accept it conversations with me that these are all valid issues with the Yoga and justify it by saying that Ideapad laptops are not as good quality as Thinkpads.
    Also worth stating is that my work is in an advisory role for a company that is a large Lenovo customer. This should never have been a consideration as the Yoga was a personal purchase. Unfortunately Lenovo chose to involve their sales people and teams who I deal with for work related issues. This only really meant that internal communication at Lenovo between departments was even worse than usual and it meant different departments offered different things and gave different explanations. I wanted to be treated as any other customer would be who had purchased a Yoga 13.
    Wifi card, range and signal strength are terrible. It also drops connections and sometimes won’t wake from sleep. During general usage the low quality, cheap realtek wifi card proves to be very poor. It is connected via an internal USB hub which goes someway to explain why it has sleep issues. For some reason Lenovo decided to design this computer with the antennas beneath the keyboard under a layer of metal shielding. This already provides a terrible level of signal. Couple this with the two additional layers of metal on the top and bottom of the machine and turning it into tablet mode seriously reduces the wifi strength even further. This is a flawed design decision and I consider it a fault, especially considering the pricing of this computer. Due to the wireless issues the computer drops connections often and many times won’t reconnect. I set up the yoga after it’s replacement wifi card next to a Thinkpad, Macbook Pro and Sony Vaio, all of the other computers connected at more than twice the speed that the Yoga is able to even at only 6ft from the wifi access point. If Lenovo wish to charge so much for a laptop and advertise it as having ‘n speed’ wifi then it should be comparable to other similarly priced laptops. While not a fault, I also find the inclusion of only a single band 2.4ghz wifi card to be quite unacceptable considering the price of the computer, no other competing products choose to go for such low quality components in their premium priced products, it is simply not fit for purpose. Lenovo accepted the wifi as a major issue with the U310 and U410 models but of course making any kind of statement of a known problem will be costly for them, so they choose to ignore customers as it is less expensive to deal with.
    I find it interesting that some users report their wifi as being perfect. I would ask anyone who claims this to connect it along with another laptop to the same network and move more than 15 ft from the router and try to copy some files across the network. Compare the two and see the difference. If you already have less than a 20Mbps internet connection and don’t use your wireless network for anything other than internet access quite close to the router then you’ll probably not have the same problem as much.
    Solution: There is none. Lenovo will replace the wifi card for another one under the warranty but it won’t fix the problem and the flawed design. For a proper solution to this problem then read at the bottom of this post regarding replacement/refund options that Lenovo are offering in this situation. Fiddling with wifi settings and routers is not a solution when every other computer (including Lenovo ones) works perfectly on that network.
    The touchscreen cuts out and requires a reset to start working again. During operation the touchscreen simply stops responding. A full reset is required to make it work again. The fact that a reset fixes it instantly shows to me that this isn’t a hardware fault. It is a further example of Lenovo’s flawed design and also perhaps a software issue. The touchscreen is also attached to the internal USB hub, whether this is related to the wifi problem above I am unsure. This is completely unacceptable on a touch based device and is not fit for purpose. 
    Solution: There is none. Lenovo will replace the touchscreen under the warranty but it won’t fix the problem and the flawed design. For a proper solution to this problem then read at the bottom of this post regarding replacement/refund options that Lenovo are offering in this situation.
    The autorotate stops responding. Again as a tablet device the autorotate is an important feature. Since coming back from repair with Lenovo it has started occasionally not responding. I was told to flip the machine over, open and close and press the ‘autorotate on/off’ button a few times as a solution. This is not an acceptable solution on an expensive machine and is not fit for purpose on a tablet based machine.
    Solution: Lenovo recommend pressing the button a few times and opening and closing the lid. Restarting also might help. This is not a solution.
    The keyboard is extremely low quality, bounces and is uncomfortable to use over an extended period. Lenovo have always been well known for producing great quality keyboards. However the cheap one they decided to put on the Yoga is really not fit for purpose. It is a simple panel keyboard that is secured in place using double sided sticky tape. Seriously, a taped down keyboard on a premium priced computer! It started to come up in one corner and pivots around several of the keys in the upper right corner. I added more double sided sticky tape under it to better secure it (as recommended on Lenovo’s customer support forums), this worked for a short while to hold it down better. The keyboard was replaced by lenovo as part of the repairs. It is still bouncy though, low quality and uncomfortable to type on for extended periods.
    Solution: Lenovo will replace the keyboard under warranty. But the new one is still stuck down with double sided sticky tape.
    The touchpad sticks and occasionally stops working. As the touchpad is the same as others used in competing products I can only assume this is a driver related issue. However, as the Yoga has been released for 6 months now it should have been addressed with a driver update by now. Lenovo don’t seem to care about this. They will replace it under warranty, but it won’t fix anything.
    Solution: Lenovo will replace the touchpad under warranty. The new one will still be the same.
    The paint peels off the corners of the device’s metal top and bottom. Due to the soft touch paint finish applied to the metal top and bottom of the machine then it rubs of in high usage areas such as the hinge and the corners. The aesthetics of a premium priced computer are actually important and it should not happen. This appears to be a flaw in the design of the machine again and makes it unfit for purpose.
    Solution: Lenovo will try to tell you that it is not covered by the warranty and that you did it yourself. After a lot of pushing they will replace both the top and bottom panels under the warranty.
    Lenovo, particularly their service centre team, are very unresponsive to questions about these issues. They will claim on first ask that they have no knowledge of any of these issues. Then they will try to blame the user and how they use the machine. After further pushing they actually will start to do something.
    Options available to customers. These have all been offered to me by Lenovo over the last few weeks. 
    Repair: Lenovo will take in your machine for repair and replace every single component (as they did with mine). They refuse to replace the machine initially as the terms of the warranty state ‘repair’. This will not fix the issues as it is due to flawed design and cheap internal components. I have had mine taken in now 4 times, of which they kept it for a week twice now.
    Sell it privately with free product compensation: This was a very strange offer and one I felt a little uncomfortable about. Lenovo offered that if I chose to sell the machine privately (as they have so many problems) then they would give me a free Thinkpad Tablet 2 as compensation for the loss of value. I thought about this but turned them down, it seemed a little too dodgy to me.
    Replacement with another Yoga: Lenovo offered me a replacement Yoga machine. They claimed a couple of weeks ago that a new model was arriving with a revised wifi design and CPU. Unfortunately when these arrived in stock (these are the ones reported a few posts back) they found they still have the same Realtek wifi card and flawed antenna design. So they quickly told me they didn’t want to do this anymore and offered new options. I would have been happy with the option if they had fixed the issues in the new one.
    Replacement with a Lenovo X1 Carbon Touch at no extra cost: I have been offered a replacement for my Yoga with an X1 Carbon Touch. It is the only other machine in Lenovo’s product lineup that has an equivalent specs list. I said that this was a perfectly acceptable solution but they have since pushed me into the final option, refund.
    Refund: Lenovo have offered me a full refund for the machine even though it was bought from a retail shop. In Hong Kong we are not lucky enough to have 30 day returns and things like that so shops don’t want to be involved after 7 days. Lenovo have said that they will issue a full refund to me. This was the option they chose in the end of the three acceptable ones. However they are now kicking their heels on it and have told me it will be another 3 weeks before they can think about doing it.
    Although reading these may seem like Lenovo have attempted to do their best. Unfortunately that couldn’t be further from the truth. This has taken nearly 10 weeks of my time so far. Lenovo have attempted at every step of the way to tell me it is not covered by warranty or that the issue does not exist (or is my own fault). I have had to create videos showing the problems, document and take photos of everything. They have hardly ever initiated a conversation about this and I have had to make every single call. It reached the point where I had to threaten legal action before they finally offered some proper solutions. 
    My recommendation for anyone thinking of buying a Yoga 13 is to think again. Although some people seem happy with theirs, I can’t see that any of the machines can really be perfect with so many flaws. The price is the same as other premium machines from Apple, Sony, Asus and Samsung. Buy one of these and you will be much happier.
    For those that already bought one and has problems then it is a little bleak without some arguing. Lenovo are ignoring the problems posted here on the forums and trying to tell customers that ‘no one else is having that problem’. It took a lot of online attention before they accepted the flawed design with the U310 and U410 models. My hope is that they do take notice of their customers in this case but I am very doubtful that they will as it would cost them money (they are after all a business so money comes first over customers). If anyone would like to follow up with Lenovo and would like to reference my case when seeking the resolution options then I will post my customer service reference numbers when I get back to the office on Monday. I am based in Hong Kong but Lenovo warranties on the Yoga are international so I feel options should be the same for all customers.
    Maybe my expectations are too high, I just expected a computer that costs more than $1000 to work properly out of the box.
    Moderator edit:  Material which breaches forum rules deleted 

    As  I don't want to install additional software to measure temparetures I can't tell you about my exact core temperatures. However, I can tell you that my fans go off again when load decreases for some time.

  • LR 4.4 (and 5.0?) catalog: a problem and some questions

    Introductory Remark
    After several years of reluctance this March I changed to LR due to its retouching capabilities. Unfortunately – beyond enjoying some really nice features of LR – I keep struggling with several problems, many of which have been covered in this forum. In this thread I describe a problem with a particular LR 4.4 catalog and put some general questions.
    A few days ago I upgraded to 5.0. Unfortunately it turned out to produce even slower ’speed’ than 4.4 (discussed – among other places – here: http://forums.adobe.com/message/5454410#5454410), so I rather fell back to the latter, instead of testing the behavior of the 5.0 catalog. Anyway, as far as I understand this upgrade does not include significant new catalog functions, so my problem and questions below may be valid for 5.0, too. Nevertheless, the incompatibility of the new and previous catalogs suggests rewriting of the catalog-related parts of the code. I do not know the resulting potential improvements and/or new bugs in 5.0.
    For your information, my PC (running under Windows 7) has a 64-bit Intel Core i7-3770K processor, 16GB RAM, 240 GB SSD, as well as fast and large-capacity HDDs. My monitor has a resolution of 1920x1200.
    1. Problem with the catalog
    To tell you the truth, I do not understand the potential necessity for using the “File / Optimize Catalog” function. In my view LR should keep the catalog optimized without manual intervention.
    Nevertheless, when being faced with the ill-famed slowness of LR, I run this module. In addition, I always switch on the “Catalog Settings / General / Back up catalog” function. The actually set frequency of backing up depends on the circumstances – e.g. the number of RAW (in my case: NEF) files, the size of the catalog file (*.lrcat), and the space available on my SSD. In case of need I delete the oldest backup file to make space for the new one.
    Recently I processed 1500 photos, occupying 21 GB. The "Catalog Settings / Metadata / Automatically write changes into XMP" function was switched on. Unfortunately I had to fiddle with the images quite a lot, so after processing roughly half of them the catalog file reached the size of 24 GB. Until this stage there had been no sign of any failure – catalog optimizations had run smoothly and backups had been created regularly, as scheduled.
    Once, however, towards the end of generating the next backup, LR sent an error message saying that it had not been able to create the backup file, due to lack of enough space on the SSD. I myself found still 40 GB of empty space, so I re-launched the backup process. The result was the same, but this time I saw a mysterious new (journal?) file with a size of 40 GB… When my third attempt also failed, I had to decide what to do.
    Since I needed at least the XMP files with the results of my retouching operations, I simply wanted to save these side-cars into the directory of my original input NEF files on a HDD. Before making this step, I intended to check whether all modifications and adjustments had been stored in the XMP files.
    Unfortunately I was not aware of the realistic size of side-cars, associated with a certain volume of usage of the Spot Removal, Grad Filter, and Adjustment Brush functions. But as the time of the last modification of the XMP files (belonging to the recently retouched pictures) seemed perfect, I believed that all my actions had been saved. Although the "Automatically write changes into XMP" seemed to be working, in order to be on the safe side I selected all photos and ran the “Metadata / Save Metadata to File” function of the Library module. After this I copied the XMP files, deleted the corrupted catalog, created a new catalog, and imported the same NEF files together with the side-cars.
    When checking the photos, I was shocked: Only the first few hundred XMP files retained all my modifications. Roughly 3 weeks of work was completely lost… From that time on I regularly check the XMP files.
    Question 1: Have you collected any similar experience?
    2. The catalog-related part of my workflow
    Unless I miss an important piece of knowledge, LR catalogs store many data that I do not need in the long run. Having the history of recent retouching activities is useful for me only for a short while, so archiving every little step for a long time with a huge amount of accumulated data would be impossible (and useless) on my SSD. In terms of processing what count for me are the resulting XMP files, so in the long run I keep only them and get rid of the catalog.
    Out of the 240 GB of my SSD 110 GB is available for LR. Whenever I have new photos to retouch, I make the following steps:
    create a ‘temporary’ catalog on my SSD
    import the new pictures from my HDD into this temporary catalog
    select all imported pictures in the temporary catalog
    use the “File / Export as Catalog” function in order to copy the original NEF files onto the SSD and make them used by the ‘real’ (not temporary) new catalog
    use the “File / Open Catalog” function to re-launch LR with the new catalog
    switch on the "Automatically write changes into XMP" function of the new catalog
    delete the ‘temporary’ catalog to save space on the SSD
    retouch the pictures (while keeping and eye on due creation and development of the XMP files)
    generate the required output (TIF OR JPG) files
    copy the XMP and the output files into the original directory of the input NEF files on the HDD
    copy the whole catalog for interim archiving onto the HDD
    delete the catalog from the SSD
    upon making sure that the XMP files are all fine, delete the archived catalog from the HDD, too
    Question 2: If we put aside the issue of keeping the catalog for other purposes then saving each and every retouching steps (which I address below), is there any simpler workflow to produce only the XMP files and save space on the SSD? For example, is it possible to create a new catalog on the SSD with copying the input NEF files into its directory and re-launching LR ‘automatically’, in one step?
    Question 3: If this I not the case, is there any third-party application that would ease the execution of the relevant parts of this workflow before and/or after the actual retouching of the pictures?
    Question 4: Is it possible to set general parameters for new catalogs? In my experience most settings of the new catalogs (at least the ones that are important for me) are copied from the recently used catalog, except the use of the "Catalog Settings / Metadata / Automatically write changes into XMP" function. This means that I always have to go there to switch it on… Not even a question is raised by LR whether I want to change anything in comparison with the settings of the recently used catalog…
    3. Catalog functions missing from my workflow
    Unfortunately the above described abandoning of catalogs has at least two serious drawbacks:
    I miss the classification features (rating, keywords, collections, etc.) Anyway, these functions would be really meaningful for me only if covering all my existing photos that would require going back to 41k images to classify them. In addition, keeping all the pictures in one catalog would result in an extremely large catalog file, almost surely guaranteeing regular failures. Beyond, due to the speed problem tolerable conditions could be established only by keeping the original NEF files on the SSD, which is out of the question. Generating several ‘partial’ catalogs could somewhat circumvent this trap, but it would require presorting the photos (e.g. by capture time or subject) and by doing this I would lose the essence of having a single catalog, covering all my photos.
    Question 5: Is it the right assumption that storing only some parts (e.g. the classification-related data) of catalog files is impossible? My understanding is that either I keep the whole catalog file (with the outdated historical data of all my ‘ancient’ actions) or abandon it.
    Question 6: If such ‘cherry-picking’ is facilitated after all: Can you suggest any pragmatic description of the potential (competing) ways of categorizing images efficiently, comparing them along the pros and contras?
    I also lose the virtual copies. Anyway, I am confused regarding the actual storage of the retouching-related data of virtual copies. In some websites one can find relatively old posts, stating that the XMP file contains all information about modifying/adjusting both the original photo and its virtual copy/copies. However, when fiddling with a virtual copy I cannot see any change in the size of the associated XMP file. In addition, when I copy the original NEF file and its XMP file, rename them, and import these derivative files, only the retouched original image comes up – I cannot see any virtual copy. This suggests that the XMP file does not contain information on the virtual copy/copies…
    For this reason whenever multiple versions seem to be reasonable, I create renamed version(s) of the same NEF+XMP files, import them, and make some changes in their settings. I know, this is far not a sophisticated solution…
    Question 7: Where and how the settings of virtual copies are stored?
    Question 8: Is it possible to generate separate XMP files for both the originally retouched image and its virtual copy/copies and to make them recognized by LR when importing them into a new catalog?

    A part of my problems may be caused by selecting LR for a challenging private project, where image retouching activities result in bigger than average volume of adjustment data. Consequently, the catalog file becomes huge and vulnerable.
    While I understand that something has gone wrong for you, causing Lightroom to be slow and unstable, I think you are combining many unrelated ideas into a single concept, and winding up with a mistaken idea. Just because you project is challenging does not mean Lightroom is unsuitable. A bigger than average volume of adjustment data will make the catalog larger (I don't know about "huge"), but I doubt bigger by itself will make the catalog "vulnerable".
    The causes of instability and crashes may have NOTHING to do with catalog size. Of course, the cause MAY have everything to do with catalog size. I just don't think you are coming to the right conclusion, as in my experience size of catalog and stability issues are unrelated.
    2. I may be wrong, but in my experience the size of the RAW file may significantly blow up the amount of retouching-related data.
    Your experience is your experience, and my experience is different. I want to state clearly that you can have pretty big RAW files that have different content and not require significant amounts of retouching. It's not the size of the RAW that determines the amount of touchup, it is the content and the eye of the user. Furthermore, item 2 was related to image size, and now you have changed the meaning of number 2 from image size to the amount of retouching required. So, what is your point? Lots of retouching blows up the amount of retouching data that needs to be stored? Yeah, I agree.
    When creating the catalog for the 1500 NEF files (21 GB), the starting size of the catalog file was around 1 GB. This must have included all classification-related information (the meaningful part of which was practically nothing, since I had not used rating, classification, or collections). By the time of the crash half of the files had been processed, so the actual retouching-related data (that should have been converted properly into the XMP files) might be only around 500 MB. Consequently, probably 22.5 GB out of the 24 GB of the catalog file contained historical information
    I don't know exactly what you do to touch up your photos, I can't imagine how you come up with the size should be around 500MB. But again, to you this problem is entirely caused by the size of the catalog, and I don't think it is. Now, having said that, some of your problem with slowness may indeed be related to the amount of touch-up that you are doing. Lightroom is known to slow down if you do lots of spot removal and lots of brushing, and then you may be better off doing this type of touch-up in Photoshop. Again, just to be 100% clear, the problem is not "size of catalog", the problem is you are doing so many adjustments on a single photo. You could have a catalog that is just as large, (i.e. that has lots more photos with few adjustments) and I would expect it to run a lot faster than what you are experiencing.
    So to sum up, you seem to be implying that slowness and catalog instability are the same issue, and I don't buy it. You seem to be implying that slowness and instability are both caused by the size of the catalog, and I don't buy that either.
    Re-reading your original post, you are putting the backups on the SSD, the same disk as the working catalog? This is a very poor practice, you need to put your backups on a different physical disk. That alone might help your space issues on the SSD.

  • How many problems do you need to have with a mac book pro to get it replaced i have had 6 problems and they say they have fixed everything and somthing new happends

    how many problems do you need to have with a mac book pro to get it replaced i have had 6 problems and they say they have fixed everything and somthing new happends
    I have had thehad the:
    ram replaced
    Battery
    Audio
    Trackpad
    os operating system
    fans
    And they still won't replace the laptop for me worst buy ever but i have had a imac for 2 months and nothing at all wrong .

    You could try calling Apple and ask for Customer Relations.
    From Readers Digest-February, 2005
    How to Complain
          You call customer service to complain about a product, and you hang up angrier than when you started. That’s customer rage, a feeling experienced by millions of people with a major complaint, says Scott Broetzmann, president an American firm that tells companies how to offer the best customer service. His secrets to getting good service:
    Have a goal
    If you want your product repaired, say so. Want an apology? Speak up.
    Keep it short
    Focus on one problem, and be succinct.
    Stick with it
    You have to invest the time it takes. Don’t get what you want? Ask for a supervisor.
    Skip ultimatums
    Don’t threaten not to do business with them again. Why should they help you if you won’t buy from them in the future?
    Plead your case
    Many companies have information such as how much money you’ve spent with them and how often you complain. If you’re a good customer, they may be more willing to help.
    Be nice
    You’re unlikely to get what you want if you’re rude.
    Good luck.

  • I keep getting a message saying Helper extentsion has encountered a problem and need to close i want to disable it but can't find the file

    Trying to gt my computer to move faster i deleted microsoft internet explorer an in order to get my computer to let me on the internet i had to download firefox when i did this i started receiving a message that said Extentsion helper has encountered a problem and needs to close not knowing this came from firefox i tried to delete firefox but kept receiving the messag i have since re-downloaded firefox but can't find extension helper to deactivate it my computer will not let me do anything i need help resolving this please
    Stacey Featherstone

    Can you run Firefox long enough to display the Add-ons page? Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable. (Remove also is available for some extensions, but not the ones that Firefox found in a registry scan or shared folder elsewhere on your system.)
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    If you cannot access the Add-ons page, try starting Firefox in Safe Mode, since that deactivates extensions and hopefully will stop that message from coming up long enough to get to the Add-ons page.
    ''If Firefox is not running:'' Hold down the Shift key when starting Firefox.
    ''If Firefox is running:'' You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    A small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Success?

  • How to VIEW two tracks's materials SIMULTANEOUSLY and SYNCHRONIZED in MONITORS?

    How to VIEW two tracks's materials SIMULTANEOUSLY and SYNCHRONIZED in MONITORS?
    "Program-monitor" shows the final edited material, and "Source-monitor" shows only one track at a time, and NOT SYNCHRONIZED with the sequence. "MultiCam-monitor" shows the tracks as I need, BUT editing is very stiff:  I want to do edits+cross-fades by hand IN THE TIMELEINE rather than by clicking the monitors. (Some of the "MultiCam-monitor's" other problems: 1) the timeline's time-inspector doesn't move while clicking the monitors, 2) vice-versa: monitor-image doesn't roll when the space-key is pressed for playback the timeline, 3) monitor doesn't show the cross-fades.....)   I understand the "Reference-monitor" doesn't help either at this.
    I would SO much like to SEE all tracks' materials simultaneously in whatever monitor, to edit efficently in the timeline.
    Software: Premiere CS3 version 3.2.0
    Operating System: Mac OS X (v10.4)

    You can only do this in the multicamera monitor.  That's what it's there for.  Proper procedure is to cut there, then go to the timeline and add transitions.
    If you're multicamera monitor playback isn't working correctly (I admit having a hard time understanding your points here), then try solving those.

  • Hi All,problem in synchronizing toughbook

    Hi All,
             Pls provide the solution for the problem  when synchronizing toughbook  .Its Urgent .

    'Hi Bharat,
    well, can you connect to the NWA from the Toughbook? It could be that you have some settings on the Toughbook that avoid this.
    First test: Connect via Ethernet in the internal Network. Then try to sync - is this working? Is the setting correct?
    If this is ok, then check via GPRS - first to call the Webservers J2EE Main page, then the NWA and finally try to sync.
    The problem: it has nothing to do with the Hardware as such I think - even a Toughbook is a normal Laptop. The problem seems to be in the Landscape. Your URL setting is not correct or there is a Firewall in between blocking the access to the Server - or you have not setup the Toughbook to alllow TCP/IP calls at all.
    So this is the area you need to look at.
    Hope this helps to give you a hint where to look at to solve the issue!
    Regards,
    Oliver

  • PC Suite Problems and Questions with 9500...

    Hey guys,
    got some problems with the Nokia PC Suite and my 9500.
    I am using...
    Nokia PC Suite 6.80.22
    Communicator 9500 FW 5.22(7)
    Windows XP SP2
    Microsoft Outlook 2003 with all updates
    (1) When i synchronize my 9500 with Outlook using the PC Suite (i only update in one direction) it doesn't update all contacts from the phone to outlook - some are still missing in outlook while being present on the phone
    (2) Most of the contacts are not updated properly into Outlook - e.g. when my contact on the phone has 4 cell phones it just updates 1 cell phone number into Outlook, probably 'cause Outlook just has one cell phone field... Anyway around it or to fix this problem ?
    (3)When a contact was already established and synchronized to Outlook and I later changed or added data in the contact on the phone (e.g. added an email adress) - when i synchronize to Outlook it will not update the new Contact Information from the Phone in the Outlook Contact Card
    (4)When i view my Contacts in the PC Suite using the Phone browser it shows all names - but the contacts that have only a Company Name and no First and Last Name are blank in the field name and only shown by number (which makes it impossible to guess who it is) - any way to see the contacts in the PC Suite also by Company Name (and by Last & First Name) ?
    Thanx anybody for your help !
    Mike

    I too, have many of the same problems: constantly reminded to "Install" the apps I have already done so (and paid for); Market Assets asks for me to become a paid member (I am); Adobe Bridge is missing from the apps page. I have reinstalled CC several times. Frustrating is the kindest word I can say--I seem to spend more time reading the "help" and discussion boards rather than working on photos. Dear Adobe, wake up and give us some solutions here! I too, have been using Adobe PS for years and UGH! CC is a mess and truly a bad experience for me! I apologize to the user above (RGMeyer) I could not be helpful, rather I am only adding fuel to your frustration.

  • Compact Flash readers & Nforce problems

    Hi all
    I am having problems with compact flash readers and Nforce.
    Computers:
    (1)
    MSI Nforce MB(orginal Bios from day one), TB 1400Mhz, 1.5Gb DDR2100 RAM, 20Gb Maxtor HD, 40Gb Maxtor HD, 80Gb Maxtor HD, DVD, Cdrw, 56K modem, Promise Controller card 431watt PS. Running Win2000 Sp2
    (2)
    MSI Nforce MB(don't remember bios), XP 1800+ , 512Gb DDR2100 RAM,  40Gb Maxtor HD, DVD, Cdrw, 56K modem, 400 watt PS. Running Win2000 Sp2
    Here are the Readers:
    Sandisk, Lexar, and the camera D100 Nikon SLR Digital
    The lexar restarts both computers when you insert the Compact flash card
    Sandisk works intermittenly and sometimes causes the computer to hang
    Camera also works intermittenly and sometimes causes the computer to hang
    I also have a Dell Inspiron 8000 with a P3 900Mhz, and all the readers and the camera work flawlessly.
    Any ideas?, what is causing the conflict.
    updating drivers? bios?????
    Thanks for the help
    Erik

    That's strange, I use a crappy 15 dollar "dazzle" mem stick reader with my sony cam and it works well. you may want to try another brand of reader. -sorry not much help. Are they USB or serial/parallel port?? mine is usb. Not sure why it works in your Dell, I'd be willing to bet that it is due to some kind of enumeration problem. I'd just get another brand of reader and take those back if possible.

  • Problems with synchronizing

    Hello,
    I am fairly new to using Dreamweaver CS5, but suddenly am having problems with synchronizing my projects. It was working fine until a few days ago, but I'll just list the steps of what happens now to try to make it clear.
    I refresh and click the sync button.
    I choose 'selected local files only' and 'put newer files to remote,' then 'preview.
    Then, Dreamweaver says it's connecting to my server, retreiving folder information, then complete.
    After that, it says that it's putting file temp2342.htm on my server.
    Then it says no synchronization is necessary...even though I do have newer files which haven't been put on my server.
    I've tried 'putting' individual files on the server, but it says 'file activity incomplete. 1 or more files not completed.'
    Up until a few days ago, the synchronization would work just fine and put the newer files on my server. I'm not sure what kind of setting I might have changed between now and then, but any ideas on how to fix this problem would be much appreciated!

    Call our customer care, they'll sort this out. You can find the details from "contact us" link on top of this page.

  • Itunes wont open, encountered problem and send error report

    Everytime i try to open windows, it says that itunes has encoutered a problem and needs to close. it has the send error report message too. please someone help

    Meaghan, I already responded to your topic. Plus, it is simply not good to bury your post in other people's topics, and just for the future, if you have a problem without a good answer, don't post what has already been said in a thread. I know, the discussions take a little getting used to, but it is easy to get the hang of it after a couple of visits. You'll get it sooner or later. I know you will.

Maybe you are looking for

  • How to connect Satellite C670D-11K to my LCD TV?

    Afternoon, Slowing losing whats left of my hair trying to get my laptop hooked up to my LCD TV. :( I've purchased a VGA to HDMI lead plugged it into my tv and my lappy and nothing, my brother on the other hand plugs his laptop in via he built in hdmi

  • Not being recognized by itunes

    I have just purchased a second Ipod and when i log on to itunes a message replys "that another user is using ipod software please have them log off." Well I have loged off every user on my computer and still can't get itunes to recognize the new ipod

  • Why is the second row in the recordset not updated?

    Hi, I have this problem. I have written a servlet named processPOItem. The following is the doPost Method in the processPOItem class: public class processPOItem extends HttpServlet { //attributes public String strPO; ConnectionPool connectionPool = n

  • Table control list box. different values in each row of the list box

    Hi all, i have a requirement to display text box in table control. Each row of list box should contain different values. i tried with the below code  but the values are not getting populated in list  box. please give your ideas. I tried with list box

  • Unable to play movies

    Though I am logged in via Apple TV to may account, I'm seeing that it will take 4 to 9 hours to view the movie!!! ISP connection is excellent (Latency 20 ms, upload 30MB; download 23MB). This has to be with the iTunes store. What is going on? Anybody