<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-03-27</periodOfReport>

    <issuer>
        <issuerCik>0000021535</issuerCik>
        <issuerName>COHU INC</issuerName>
        <issuerTradingSymbol>COHU</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001107464</rptOwnerCik>
            <rptOwnerName>CAGGIA ANDREW M</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>17087 VIA DEL CAMPO</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SAN DIEGO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92127</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Restricted Stock Units</value>
            </securityTitle>
            <transactionDate>
                <value>2026-03-27</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>594</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>76158</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Grant of Phantom Stock in the form of Deferred Stock Units (DSUs) for payment of Director Fees. Each DSU is equal to one share of Cohu, Inc. Common Stock and will be settled through the issuance of common stock (i) upon the reporting person's termination of service as a director or (ii) at certain specified future dates.</footnote>
        <footnote id="F2">Number of shares includes 10,257 Restricted Stock Units (RSUs) and 50,505 Deferred Stock Units (DSUs). Each RSU represents a contingent right to receive one share of Cohu, Inc. Common Stock upon vesting (assuming continued service to the Board). Each DSU is equal to one share of Cohu, Inc. Common Stock and will be settled through the issuance of common stock upon (i) the reporting person's termination of service as a director or (ii) at certain specified future dates.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Jeffrey D. Jones</signatureName>
        <signatureDate>2026-03-30</signatureDate>
    </ownerSignature>
</ownershipDocument>
