Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

how to assign the task prority in the niche TCP/IP application?

Hi,

Happy thanksgiving1

Just have a question.In the simple socket server code, there is a PHY monitoring task, should this task's prority be higher than all the other tasks using the network?

If another task(non-networking) will take a very long time to execute, should it have lower priority than the PHY monitoring task because the PHY needs to be maintained?:D

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The MAC takes care of managing packets to and from the phy.

    TSE MAC and other MAC cores, usually exploit DMA to transfer incoming data to memory, so you don't necessarily need to pool at high rate, provided you have enough descriptor memory.

    The maximum delay you can accepts will then depend from your upper layer protocol requirements on latency.

    I myself have a design where I use a highest priority task which periodically blocks network task up to 0.3ms every 1ms and the lower priority network task is not affected by this (apart a slight decrease in speed, I mean kB/sec transferred)