what happened when inverted page table fault? - operating-system

I am clear what happens when TLB fault. But i am curious what happens when page fault happens how OS handle the problem in inverted page table? it can't just put the specific entry in table,because there is a "pid" in each entry. Can anyone help me ?

Related

Core Data and CloudKit Share

here is the problem I have. I have a CoreData app with CloudKit functions. So far everything works fine.
A table with entries is displayed. About a column I rule the position of the entry. The entries in the list I can then also move them and the column is adjusted accordingly. So far so good. Now there is the shard function where I can share entries from the table with others. As soon as another user moves the entry, this entry is then also moved to me without me wanting that. I think I have a design problem here, but I don't know how to solve it differently. Do you have any ideas.

Content merging AEM

We're looking for a solution on how to best deal with the situation where multiple authors are working on the same page. If the first author pushes in the content, the second should have a way to merge it when he tries to publish. Launches appears to be a way to take care of this but it doesn't seem to be handling content merging. Is there any way an author can view the diff(and or do merge) of the content that might have been pushed by another author while they were working concurrently ?
Please help with any pointers.
Page modifications happen in real time to the underlying structure. They also happen at as small a level as possible.i.e. If you go into a text area and modify the text there, the text node is changed on the server, you aren't saving the entire page.
The only way that person A could interfere with what person B is doing is if they were working on the exact same area of the page. Which, honestly is a process issue. I say this because the answer to your question is that there is nothing out of the box to handle this type of scenario and if you are on 6.0 or higher and looking at the JCR3. JCR3 handles this far worse than the older version did. Last time I checked it didn't support nodes at all
Adding to what Bailey said, AEM OOB allow multiple users to edit same page in real time, though if multiple users are working on same node will be a reason of conflict. Such cases can be managed by defining a process like:
1. Take a lock of page and edit page or
2. Create versions of page and publish versions

Changing header height with iText

This is my first post on SO, so please be gentle :). I'm going to go ahead and apologize for how vague this will probably sound and for the lack of code (this is for work, and I am forbidden from posting it). I will try to pseudocode it or explain it as best as I can, but I have no choice in not being able to show code.
The customer wants a report that pulls data from a DB, so I will have no way of knowing how many pages will be in the form. There are essentially 2 sections of the form. My problem is that the headers have different heights.
The first page of the report's header is built like this:
report header
additional info 1
additional info 2
column header
The rest of the first section leaves out the Additonal Info 1 and Additional Info 2 tables and only has the report Header and Column Header, thus not needing as much space as the header on the first page. But the problem is that I don't know how to shrink the header size. The second section's header is even smaller.
What I have tried so far:
Changing the value for the number of rows in my writeSelectedRows() depending on the page.
Setting the height of the header to a smaller size (before calling document.newPage() since I've seen in my days of google searching for this topic that the header height has to be set before calling newPage())
Adjusting the top margin size of the document depending on which section it is on
None of this even worked. I realize this is incredibly vague and there is probably no way anybody could answer this based on what I've written. I guess I am just asking if anybody knows any links to similar problems I could check out. I have spent days googling this topic and have read tons on it, but still have nothing that works. I have read through all of the relevant tutorials on the iText page. Still nothing that suits what the customer is wanting.
I have looked over possibly using ColumnText and PdfReader/PdfStamper(the "second pass" scenario), but I don't think I can use the ColumnText option since the headers have tables of varying cell widths and the like, and the "second pass" option doesn't leave me with a way to know which section of the report I am on (as far as I can tell).
Any advice or help would be GREATLY appreciated!!

No rights on page-module level

I encounter a strange error. On page-module level i´m not allowed to create new page elements. If i do the same via the list-module page-elements are created and i can edit them (even in the page-module).
Also, if i created a flexible content element - e.g. columns - (via the list module) i CAN create new elements in the flexible content element, even in page module.
New elements are always on TOP of the page, meaning the first entry, and i can´t drag and drop them. Well, i can, but changes do not come in effect. To sort the elements I have to edit the page properties, and sort content.
The user has every right(!) given by the user settings, and it is TYPO3 4.7.4
Does anyone know where i have to look for a solution? Thanks in advance!
Edit 1
This error appears in the log:
Attempt to insert record on page '[root-level]' (0) where this table, tt_content, is not allowed (msg#1.1.11)
Again: Creating Elements IS working via the List-Module.
This error is causen because the field t3ver_swapmode in the page table was removed since TYPO3 4.7 (Maybe in combination with TemplaVoila).
I dont know whats exactly going on here (didnt had the time to find that out), but the solution is of cource simple. I uploaded my fix to the TYPO repository under the key swapmodefix http://typo3.org/extensions/repository/view/swapmodefix
The extension appears in a couple of hours, good luck!
You need to select a page inside the pagetree first. You may not create content elements on the root page.
It might be that the selection is lost, but still visibel. Just click the page again.

Repeater User Control and Viewstate

I maintain an ASP.NET Web Forms application on framework 3.5. Essentially it is a list of items and a checkbox to signify the state of the item. The users can sort the items by any of a number of columns. New items are added and removed between postbacks. This list is hosted in a Repeater and the item template is a usercontrol. The page has no master page as it is an application that was upgraded from framework 1.0 to 1.1 to 2.0 to 3.5. The application does this if it is hosted by IIS6.1 and 7.5, 32 bit and 64 bit. It is in it's own application pool and the pool has 4 threads.
Now the problem: If a checkbox is checked in the thrid row and the item in position 1 is removed in the database, then it should move up to position 2. It does move up, but the checked check box stays in position 3. If the rows are sorted, then all the checked checkboxes stay in their position, but the rest of the information is sorted and displayed correctly, including the title on the parent tag.
Viewstate is disabled on the user control, and on the checkbox within the user control. Caching of the page is disabled in a page directive. The repeater is bound in page load.
I've checked the state of the controls in the repeater that should be checked right after repeater.DataBind and the state of the check boxes is correct. This is the last line in the page load event. Using fiddler I have verified that the rendered HTML is not correct. So it seems that the problem is somewhere in the render.
This is as far as I've been able to take this. The application is mission critical, yet this bug has existed for a very long time. Obviously the state of this checkbox wasn't that important, but due to evolving business requirements it is becoming an issue.
No searches come up with any bugs. I can post the code, but it is extremely long since it is part of a large applicaon, so I have not.
It appears that viewstate is being loaded between Page_Load and LoadComplete. Checking the values after databinding and LoadComplete shows this. What would cause viewstate to load at the wrong time like this. Feels like a bug. It only affects one page in the applicaon. I know that viewstate is populated after init and that all controls should be loaded during OnInit, but I don't want viewstate so it is ok that this doesn't function.
It has nothing to do with the type of control. I just exchanged the asp:checkbox for a htmlinputcheckbox and the behavior persisted.
EDIT: Would control state have anything to do with this? It can't be disabled so far as I know.
After removing the asp:checkbox for an HtmlInputCheckBox and suffering the same problem. I determined that the probelm is with the check box in particular and exchanged it for an asp:ImageButton with fake check box image.
I believe, though I do not know for sure, that the check box state is a part of conrol state and not view state. Seems like a Microsoft Bug to me, but perhaps that is the way this control was designed.