How to implement a "mutex" lock

Hi there, I'm in a need of creating something like a mutex mechanism, not related to a table.
Is it possible or do I have to fill in any dummy table ?
Cheers,
Bart

Hi,
The status monitor for the integrated ITS (transaction SITSPMON) is used to display the current status of the integrated ITS functionality in the application server. You can display and change the currently set parameters. You can get information on the memory load, on the content of the ITS caches, on set locks and on activated features.
Functions
The different pieces of information displayed on the screen are sorted by categories, which you can view using the respective tabstrip. Currently, the following display screens are available:
·        Parameters
·        Memory Statistics
·        Template and MIME Cache
·        Mutex Locks
·        HTML Template Directory
·        Feature List
Mutex Locks
Mutex Locks (Mutual Exclusions) prevent competing access to resources. The integrated ITS function uses mutex locks for the HTML template cache, which exists only once for all work processes, to prevent the situation that a work process stores a new HTML template version in the HTML template cache while another work process processes an HTML template.
Apart from this, mutex locks are used for
·        Memory statistics
·        Individual HTML template cache entries
·        HTML Template Directory
Try exploring how this functionality have been done in transaction SITSPMON.
Regards,
Harish

Similar Messages

  • How to implement the shared lock in a  table view

    Hi,
    How to implement the shared lock in a  table view.for multiple users to edit on this same table.
    Thanks in advance
    Swathi

    Hi,
    Please refer this link to find solution to your querry.
    Hope it helps.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c322c690-0201-0010-fb86-811c52b0acc2.
    Regards,
    Rahul

  • How to implement the pessimistic locking using toplink with sybase

    we want to allocate the unique primary key to each row when many user try to insert the records concurrently..So what we are trying to do is we calculate the maximum of Primary Key and incremented it by 1. Now we want to Apply the locking concept on the so that unique key will be allocated to each newly inserted row
    Can you please tell me
    1. how we can genrate unique primary key in toplink using sybase?
    2.how to implement the pessimistic or optimistic locking ?which one will be preferable?

    Hi brother
    I think that this link can help you
    http://download-east.oracle.com/docs/cd/A97688_16/toplink.903/b10064/database.htm#1007986
    Good luck

  • How to implement optemistic locking in pl/sql for oracle database

    i have search the net to find example of how i can do the optimistic locking in pl/sql, all the resources i found were old , for example "Optimistic Locking with Concurrence in Oracle.
    As " by Graham Thornton Snr. Database Architect / Oracle DBA in 2001, but at the end he said that the approach will not work fine if the update being made is a relative update, this apprach includes:-
    1.add a timestamp column to an exsiting table.
    2.add a preinsert trigger on the table to set the timestamp.
    3.add a preupdate trigger to comapre the old time stamp with the new one.
    So where i can find updated resources about this issue.
    Edited by: 812643 on 17-Nov-2010 12:39

    totally plagiarized from expert oracle database architecture 9i, 10g, 11g by Tom Kyte pg201
    one popular implementation of optimistic locking is to keep the old and new values in the application and upon updating the data use and update like this
    update table
    set column1 =: new_column1, column2 = : new_column2, ...
    where primary_key = :primary_key
    and decode( column1, :old_column1, 1 ) = 1
    and decode( column2, :old_column2, 1 ) = 1
    another implementation
    optimistic locking using a version column
    add a single column to each database table you wish to protect from lost updates. this column is generally either a number or date/timestamp column
    It is typically maintened via a row trigger on the table, which is responsible for incrementing the number column or updating the date/timestamp column
    every time a row is modified.
    another one on page 204
    optimistic locking usin a checksum
    similiar to the version column implementation but it uses the base data itself to compute a virtual version column.
    the ones suggested where owa_opt_lock.checksum, dbms_obfuscation_toolkit.md5, dbms_crypto.hash, ora_hashEdited by: pollywog on Nov 17, 2010 3:48 PM
    might be a good book for you to look into getting it has a whole chapter on locking and latching.
    Edited by: pollywog on Nov 17, 2010 3:54 PM

  • Implementing "critical sections" using recursive mutex locks

    Greetings.
    I have chosen pthread mutexes for implementing critical sections in my ported Windows code. As you probably all know, mutexes do not by default support recursive locking and will deadlock if attempted. With Solaris 7 came support for recursive locking through the PTHREAD_MUTEX_RECURSIVE type of mutex. The problem I have encountered when using these recursive mutexes doesn't even involve recursive locking, yet only manifests itself when using the recursive type.
    To pin-point the problem, I have written a very simple application that creates 10 threads and pauses (via sleep()) for an amount of time sufficient for all threads to complete. In each thread, a global mutex (recursive type) is locked and then immediately unlocked, with status going to stdout via printf. There is no problem with this simple application and all threads run to completion after each gets the mutex lock in succession. To really test the mutex however, I simulated a pre-empted or otherwise blocked thread via a call to sched_yield() after locking the mutex and before unlocking it. In this version of the application, only the first thread to acquire the mutex lock completes (after successfully locking and unlocking the mutex), and all other threads hang waiting to acquire the mutex lock.
    Any insight on this problem or suspected problems with the code I described would be GREATLY appreciated! I would be happy to send the source to this simple application to anyone interested in observing it's behavior.
    Regards and thanks in advance.
    Chad Attermann
    telic.net

    Solaris 7 is shipped broken for recursive mutexes... You can fix it by using patch 106980-13 and everything it depends on...
    Good luck!

  • How to increase max. number of mutex lock at a time

    In my application , when trying to lock mutex with pthread_mutex_lock() ,
    this returns ENOMEM.
    I found that ENOMEM error occurs when locking over 2000 mutex in a thread
    by execute a sample program.
    In those mutex,PTHREAD_PRIO_INHERIT attribute is set to lock mutex in a sequential FIFO order.
    Does anyone knows how to prevent ENOMEM error and how to increase maximum number of mutex lock at a time in a thread ?

    Check these 2 articles
    https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file?esab=a&s=how+to+put+a+file+in+download+queue&r=2&as=s
    https://support.mozilla.org/en-US/kb/find-and-manage-downloaded-files?esab=a&s=limit+maximum+number+of+downloads+and+create+a+download+queue&r=1&as=s
    This might help you.
    Thank you.

  • Should I be able to see a priority change using a mutex lock   ?

    If I have a program which uses a mutex lock in solaris 9 which is set up to protect/priority ceiling of 5 and kick it off using priocntl with a priority of 11 and RT, I can look at top and see that it has priority 111. So my process is running real time. I then use a second xterm and wait till the program hits the lock portion of the code. If I do a priocntl -d pid, it is still priority 11. I know it is in the lock because there is a printf and a sleep of 20 seconds. Should I be able to see the priority go to 5? How can I prove the priority inheritance off the mutex lock is working in a test program, so that I know I am using it correctly? Thanks for any insight.

    I also tried it with a priority ceiling of 50, figured out that RT priorities worked the reverse of regular priority, the higher the priority number, the higher the priority. I still however am not able to prove the priority inheritance occured. Anybody got any thoughts on how to prove it is working properly.

  • How to implement this typical sign workflow? Urgent

    Hi Adobe Experts,
    I am new to LC (two months only). Recently company is doing some evaluation on LC 8.2 and my boss assigned the following task to me  (I simplified it):
    Form: (Enclosed)
    * Two text fields: CommentTextField1 and CommentTextField2
    * Two signature fields: SignatureField1 and SignatureField2
    I've associated the SignatureField1 to lock CommentTextField1 and associated the SignatureField2 to lock CommentTextField2.
    The progress to implement is:
    Step 1) Ray Woodard open the form in workspace, type in CommentTextField1, Sign the SignatureField1, Submit.
    Step 2) Alex Pink open the form in workspace, type in CommentTextField2, Sign the SignatureField2, Submit.
    Any suggestions on how to implement the progress? Please help! Thanks a lot!
    (What I am able to accomplish so far is the step 1, but I am not confident about that. Please point me the right solution. Should I use xfaForm or Document Form, render/submit as default or PDF, submit as XDP or PDF etc...? I am so confused and frustrated now!)

    Steve, thank you so much!!!
    Your example helped me a lot. I am able to run the process, but I still have three doubts:
    1) When I set "Submit As" to "PDF" rather than "XDP" by default, I am not able to submit the form in the workspace client with "Adobe Reader" installed. But I am able to submit the form in the workspace client with "Adobe Acrobat" installed. Is it normal?
    2) What does "Form Bridge" do in this whole process here?
    3) If I don't want to hard code the submit URL  in the form, do I have another option, like using other renders?
    Thanks again!
    Wayne

  • Mutex locking issue on Solaris 10

    We are having a problem with mutex locking.
    On one scenario we are running our application
    On a v245 running Solaris 10 6/06 update 2 patch 118833-24
    On our 5120 we are running Solaris 10 8/07 update 4patch 137111-05.
    Our application creates several thousand simultaneous mutex inits (pthread_mutex_init). Approx 12 are locked at any one time. Our problem is after several min the application fails because the mutex destroy does not appear to destroy the mutex. This is true only on our 5120 but not on our v245. As a result our application runs fine on the v245 but fails quickly on the 5120.
    Do you have any knowledge of why this might be happening?
    Any help you can provide in this will be greatly appreciated.
    If this is not the right group to post this messages please let me know.
    Thanks!

    How many threads do you have performing these mutex operations? The 5120 probably runs a lot more concurrent threads than the v245 does, so it's likely you're running into a race condition that's only apparent when the number of concurrent threads is large enough.
    What kind of mutexes are they? Recursive, process-shared, "normal"? Where are they located? Dynamically-allocated heap memory, local stack variables, mmap()'d memory? If they're recursive or "normal" mutexes in heap memory, you've most likely got a race condition in your application, because the source code at opensolaris.org for pthread_mutex_destroy() is pretty much nothing but "memset( &mutex, 0, sizeof( mutex ) )" for normal mutexes. It's hard to imagine how that could fail.
    You can use the race-condition tools that are part of Sun Studio 12 or another memory-checking application such as Purify to find out where your error may be. Given the timing issues apparently involved, those are probably your best options. The overhead of tools such as watchmalloc or even the run-time memory checker in Sun Studio may be too much and mask your timing issues. Assuming that's what the root cause of your problem is.
    I didn't look at what's involved in destroying a process-shared mutex, though. That's a lot more complicated.
    On edit: How do you know that pthread_mutex_destroy() is not destroying the mutex?
    Edited by: AndrewHenle on Jun 16, 2009 3:46 PM

  • Multi processor Solaris 2.6 and mutex locks

    hi,
    is anyone aware of any documented issues with Solaris 2.6 running
    on dual-SPARC processors (multi-processor environment) where the
    programs using "mutex locks" (multi-threaded applications), require
    some special handling, in terms of compiling and linking, to some
    special libraries.
    as far as i remember, in some OS book, maybe Peterson's, it was said
    that the mechanism for implementing mutex-locks on multi-processor
    systems is to use low-level spin-locks. this brings down performance
    on a single-processor system, making the processor doing busy-wait,
    but this happens to be the only way of mutex-locking in a multi-processor
    system. if this is so, then where is such behaviour documented in case
    of Solaris 2.6.
    i have had problems with my applications crashing (rathing hanging up)
    in a vfork() on such a system, but same application works fine, with
    100% reproducability, on a single-processor system.
    thanks for any inputs or suggestions and/or information.
    regards,
    banibrata dutta

    I am also facing similar problem. Application which written using Mulit-Threaded using Posix Mutexes. When i run on SINGLE processor manchine, i.e.
    SunOS sund4 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-5_10
    It works perfectly.
    But when try to run on dual processor machine, i.e.
    SunOS sund2 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-250
    It is blocking in the one of mutexes.
    Please inform us what is problem. Mr. B. Datta, you comes to know
    any channel, please inform me also at [email protected]
    Thanx & regards,
    -venkat

  • How to impement Webi Report locking mechanism

    Hi ,
    Can you please suggest me how to implement Webi Report Locing Mechanism .
    Thanks & Regards
    Venkat

    Hi ,
    Thanks for your reply .
    we have comments column in our report .  for each we have added one blank cell to give the comments purpose .
    But Multiple Users are trying to edit the report same time  so who ever saved the report those comments only available .
    To avoid multiple users to edit the same report we want to implement the report locking mechanism similar to Universe Locking mechanism in Designer .
    appreciate your speedy response .
    Thanks & Regards,
    Venkat

  • How to implement authorization at sales order/projects level?

    If we open a sales order in VA02 and then try to open the same sales order in another session in VA02, there will be a message that the sales order is being processed. 
    I wish to implement similar functionality in my application which consists of editable report. 
    I tried to debug the situation in VA02 case mentioned above, to know something more about it, but could not understand anything!
    I know that lock objects can be helpful in this, but in my case there can a be range of sales orders (and projects within a range of profit centers). 
    How to implement such a functionality?
    Edited by: Ankit Modi on Dec 30, 2009 10:54 AM
    Edited by: Ankit Modi on Dec 30, 2009 10:55 AM

    @ Max -
    Yes Max, but the problem is that I want the lock on many sales orders at a time.  Its like, there is a report in which many rows (for sales orders) are editable.  I want all those to be locked at a time. This will not work by Lock object, I believe...
    @ Soumya -
    Yes Soumya, but, as I explained above, I want a range of sales orders rather than a sales order in particular.  That will not work by lock object.  Right?

  • Is it possible to implement an IMEI lock using USAT / STK  on a SIM card ?

    Hi,
    Does anyone know if it's possible to implement an IMEI lock using USAT/STK and Javacard? What I want to do is write an applet that checks if a SIM has been placed in a phone whose IMEI does not match one on record, and then stops the SIM from working in the new phone if the IMEIs don't match.
    Checking the IMEI is straightforward but I'm looking for suggestions of how to stop the SIM from working in the new phone, or keeping the SIM off the network so that it cannot be used. Can this be done using USAT and Javacard or does this have to be done at the card OS level?
    Thanks,
    C.

    Hi,
    I've been involved in a similar proyect too.
    If you want to do lock the SIM editing those files contect, you should check out the READ_UPDATE Conditions ( problably, as those are very sensitive data the conditions defined are NEVER. If you are defining a complete card pesonalization, you can change it to ADM... and then you will be able to modify the values.
    for further information you can contact me by email...

  • Adaptive Mutex locks

    I tried to look for how to use adaptive mutexes as they are available on version 2.7 onwards. But in man pages I did not get enough hints. To my understanding, the default mutex behaviour is spin wait and not adaptive wait.
    Can anyone give a pointer to this info or a piece of code using it. I want to use it in application program and which need not necessarily use ddi interface.
    Also I want info about if these mutex locks can be created with "process robust" option.

    So do you mean I have a per-instance pollhead structure and I make the *phpp (4th argument to xxchpoll)  point to the address of this pollhead structure so that once xxchpoll()  returns, my local pollhead structure (for that instance of the driver) will be initialized  ??                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to Implement BW in IT Service Desk/IT Help Desk /IT Complain Surveillance Dept/IT Customer Support Dept?

    Hi
    If a organization have 200 to 300 daily complains of there IT equipment/Software/Network e.t.c.
    How to Implement BW in IT Service Desk/IT Help Desk /IT Complain Surveillance Dept/IT Customer Support Dept?
    Is there any standard DataSources/InfoObjects/DSOs/InfoCubes etc. available in SAP BI Content?

    Imran,
    The point I think was to ensure that you knew exactly what was required. A customer service desk can have many interpretations from a BI perspective.
    You could have :
    1. Operational reports - calls attended per shift , Average number of calls per person , Seasonality in the calls coming in etc
    2. Analytic views - Utilization of resources , Average call time and trending , customer satisfaction , average wait time
    3. Strategic - Call volumes corresponding to campaigns etc , Employee churn and related call times
    Based on these you would then have to construct your models which would be populated by data from the MySQL instance for you to report.
    Else if you have BWA you could have data discovery instead or if you have HANA - you could do even more and if you have a HANA sidecar - you technically dont need BW. The possibilities are virtually endless - it depends on how you want to drive it and how the end user ( client ) sees value in the same.

Maybe you are looking for

  • How to display a percentage sign ( % ) after a text box in a screen

    hi experts, Can anybody tell me how to display a percentage sign ( % ) after a text box in a screen.

  • Where does the resources bundle files need to be

    Hi All, Does any of you knows where all the custom resources bundle files that will be used on BCC need to be? I have something like this: BCC module /src/com/mycompany/resources/WebAppResources.properties But when I try to use it This happens javax.

  • How to stop iPhoto from automatically launching?

    I'm not sure if this is specific to any version of iPhoto or not. But anyway, when I insert a compact flash card into a USB card reader attached to an iMac, iPhoto automatically launches. How do I turn this functionality off? Thanks

  • Disk Erase Failed. Disk cannot be dismounted on Mac Mini Server

    Ok, this is a bit crazy for me anyway. I have a Mac Mini Server running Snow. My Server HD failed but fortunately my Mac HD was being used as an image backup and I can boot from it fine and runs perfect. The bad disk was not showing in Disk Utility a

  • Need Better Audio from Machine

    I upgraded to a new MAC Pro My audio is coming out of the tiny speaker output from the back of the MAC pro. Then it is split and going into a small 12 Channel Mackie board.  That board feeds my V6 KRK Speakers But I get a lot of buzz and hum.  I use