문제

If 2 file descriptors were dupped to the same file (i.e. 506 and STDOUT), will invoking close(506) cleanup the object associated by both and render STDOUT unusable? Or does kernel implement reference counting for its files?

도움이 되었습니까?

해결책

SharePoint 디자이너의 법적 방법으로 Eval 표현을 사용하는 방법을 찾았으며 공유하고 싶었습니다.

SpdataSource와 ASP.NET Repeater 컨트롤이 묶여 있습니다.

이와 같이 eval 표현을 사용하면 허용되지 않습니다.

<asp:Repeater runat="server" id="Repeater1" DataSourceID="spdatasource1">
  <ItemTemplate>
    <%# Eval('Title') %>
  </ItemTemplate>
</asp:Repeater>
.

그러나 다른 ASP.NET 컨트롤에서 EVAL 표현식을 사용하는 경우 불평하지 않습니다 :

<asp:Repeater runat="server" id="Repeater1" DataSourceID="spdatasource1">
    <ItemTemplate>
       <asp:Literal runat="server" Text="<%# Eval('Title') %>" ID="lit1"></asp:Literal>
    </ItemTemplate>
</asp:Repeater>
.

나는 SharePoint Designer에서 순전히 완수 할 수있는 큰 사용자 정의의 새로운 가능성을 열 때이 솔루션을 발견했습니다.

다른 팁

Reference counters are widely used inside the kernel to avoid race conditions due to the concurrent allocation and releasing of a resource. A reference counter is just an atomic_t counter associated with a specific resource such as a memory page, a module, or a file. The counter is atomically increased when a kernel control path starts using the resource, and it is decreased when a kernel control path finishes using the resource. When the reference counter becomes zero, the resource is not being used, and it can be released if necessary.

You might care to see this if you want to look through this for an overview of Linux Kernel reference counting implementation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top